Scott Main | 98af5edc7 | 2011-12-15 20:13:20 -0800 | [diff] [blame] | 1 | page.title=Remembering Users |
Scott Main | f9cca66 | 2011-12-15 10:07:03 -0800 | [diff] [blame] | 2 | |
| 3 | trainingnavtop=true |
| 4 | startpage=true |
Dirk Dougherty | 3b33cdc | 2011-12-15 15:34:41 -0800 | [diff] [blame] | 5 | next.title=Remembering Your User |
Scott Main | f9cca66 | 2011-12-15 10:07:03 -0800 | [diff] [blame] | 6 | next.link=identify.html |
| 7 | |
| 8 | @jd:body |
| 9 | |
| 10 | |
| 11 | <div id="tb-wrapper"> |
| 12 | <div id="tb"> |
| 13 | |
| 14 | <h2>Requirements and prerequisites</h2> |
| 15 | <ul> |
| 16 | <li>Android 2.0 (API level 5) or higher</li> |
| 17 | <li>Experience with <a href="{@docRoot}guide/topics/fundamentals/services.html">Services</a></li> |
| 18 | <li>Experience with <a href="http://oauth.net/2/">OAuth 2.0</a></li> |
| 19 | </ul> |
| 20 | |
| 21 | <h2>You should also read</h2> |
| 22 | <ul> |
| 23 | <li><a |
| 24 | href="http://developer.android.com/resources/samples/SampleSyncAdapter/index.html"> |
| 25 | SampleSyncAdapter app</a></li> |
| 26 | </ul> |
| 27 | |
| 28 | </div> |
| 29 | </div> |
| 30 | |
| 31 | |
| 32 | <p>Android users get attached to their devices and to applications that they |
| 33 | love. One way to make your application lovable is to make it personal. Android |
| 34 | devices know who your user is, what services they have access to, and where they |
| 35 | store your data. With your user's permission, you can use that information to |
| 36 | make your application a richer, more personal experience.</p> |
| 37 | |
| 38 | <p>In this class, you will learn multiple techniques for interacting with your |
| 39 | user's identity, enabling you to:</p> |
| 40 | |
| 41 | <ul> |
Dirk Dougherty | 3b33cdc | 2011-12-15 15:34:41 -0800 | [diff] [blame] | 42 | <li>Personalize your app by remembering users by their account name(s) |
Scott Main | f9cca66 | 2011-12-15 10:07:03 -0800 | [diff] [blame] | 43 | <li>Authenticate the user to make sure they are who they say they are |
| 44 | <li>Gain permission to access the user's online data via services like |
| 45 | the Google APIs |
| 46 | <li>Add a custom account to the user's device to authenticate your own |
| 47 | back-end services |
| 48 | </ul> |
| 49 | |
| 50 | |
| 51 | <h2>Lessons</h2> |
| 52 | |
| 53 | <dl> |
Dirk Dougherty | 3b33cdc | 2011-12-15 15:34:41 -0800 | [diff] [blame] | 54 | <dt><b><a href="identify.html">Remembering Your User</a></b></dt> |
Scott Main | f9cca66 | 2011-12-15 10:07:03 -0800 | [diff] [blame] | 55 | <dd>Use {@link android.accounts.AccountManager} to learn the user's account name(s).</dd> |
| 56 | |
| 57 | <dt><b><a href="authenticate.html">Authenticating to OAuth2 Services</a></b></dt> |
| 58 | <dd> Use OAuth2 to help users get permission to access web services without needing to type in a |
| 59 | login name or password. </dd> |
| 60 | |
| 61 | <dt><b><a href="custom_auth.html">Creating a Custom Account Type</a></b></dt> |
| 62 | <dd>Add your own account type to the Android Account Manager.</dd> |
| 63 | |
| 64 | </dl> |
| 65 | |