blob: 361e6cfa0da0b926d36f00f9d979dc94f5af66b6 [file] [log] [blame]
Scott Main98af5edc72011-12-15 20:13:20 -08001page.title=Remembering Users
Scott Mainf9cca662011-12-15 10:07:03 -08002
3trainingnavtop=true
4startpage=true
Dirk Dougherty3b33cdc2011-12-15 15:34:41 -08005next.title=Remembering Your User
Scott Mainf9cca662011-12-15 10:07:03 -08006next.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
24href="http://developer.android.com/resources/samples/SampleSyncAdapter/index.html">
25SampleSyncAdapter 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
33love. One way to make your application lovable is to make it personal. Android
34devices know who your user is, what services they have access to, and where they
35store your data. With your user's permission, you can use that information to
36make your application a richer, more personal experience.</p>
37
38<p>In this class, you will learn multiple techniques for interacting with your
39user's identity, enabling you to:</p>
40
41<ul>
Dirk Dougherty3b33cdc2011-12-15 15:34:41 -080042<li>Personalize your app by remembering users by their account name(s)
Scott Mainf9cca662011-12-15 10:07:03 -080043<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
45the Google APIs
46<li>Add a custom account to the user's device to authenticate your own
47back-end services
48</ul>
49
50
51<h2>Lessons</h2>
52
53<dl>
Dirk Dougherty3b33cdc2011-12-15 15:34:41 -080054 <dt><b><a href="identify.html">Remembering Your User</a></b></dt>
Scott Mainf9cca662011-12-15 10:07:03 -080055 <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
59login 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