• Home
  • Raw
  • Download

Lines Matching refs:to

6 next.title=Authenticating to OAuth2 Services
14 <h2>This lesson teaches you to</h2>
17 <li><a href="#TaskTwo">Decide What Type of Account to Use</a></li>
20 <li><a href="#IdentifyUser">Use the Account Object to Personalize Your App</a></li>
28 effective things you can do to make your app more lovable is to remember who
29 your user is&mdash;especially when the user upgrades to a new device or starts carrying
34 user's permission, you can use Account Manager to fetch the account names
37 <p>Integration with the user's accounts allows you to do a variety of things such as:</p>
40 <li>Retrieve an ID that is tied to a user, not the device.</li>
46 <p>Applications typically try to remember the user using one of three techniques:</p>
48 <li>Ask the user to type in a username </li>
49 <li>Retrieve a unique device ID to remember the device</li>
53 <p>Option (a) is problematic. First, asking the user to type something before
59 to get right</a>. More
60 importantly, it only allows you to remember the user on one device. Imagine the
61 frustration of someone who upgrades to a shiny new device, only to find that
64 <p>Option (c) is the preferred technique. Account Manager allows you to get
67 how many devices the user may own, by adding just a couple of extra taps to your
71 <h2 id="TaskTwo">Decide What Type of Account to Use</h2>
74 When you query {@link android.accounts.AccountManager} for account names, you can choose to filter
83 <p>In order to get a list of accounts on the device, your app needs the {@link
86 &lt;uses-permission&gt;}</a> tag in your manifest file to request
99 <p>Once you decide what account type you're interested in, you need to query for accounts of that
102 instance to call {@link android.accounts.AccountManager#getAccountsByType(java.lang.String)
113 the array, you should present a dialog asking the user to select one.</p>
116 <h2 id="IdentifyUser">Use the Account Object to Personalize Your App</h2>
122 <li> As suggestions in forms, so the user doesn't need to input account information by
131 <p>An account name is a good way to remember the user, but the {@link android.accounts.Account}
133 itself doesn't protect your data or give you access to anything besides the user's account name. If…
134 needs to allow the user to go online to access private data, you'll need something stronger: authen…
135 The next lesson explains how to authenticate to existing online services. The lesson after that