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