blob: 2bae9c484b58de129666b74bc515f179d6f28e0c [file] [log] [blame]
Scott Main98af5edc72011-12-15 20:13:20 -08001page.title=Remembering Users
Scott Main1c2dea02013-04-10 18:59:29 -07002page.tags="privacy","oauth","accounts"
Scott Mainf9cca662011-12-15 10:07:03 -08003
4trainingnavtop=true
5startpage=true
Scott Mainf9cca662011-12-15 10:07:03 -08006
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 Main50e990c2012-06-21 17:14:39 -070016 <li>Experience with <a href="{@docRoot}guide/components/services.html">Services</a></li>
Scott Mainf9cca662011-12-15 10:07:03 -080017 <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
23href="http://developer.android.com/resources/samples/SampleSyncAdapter/index.html">
24SampleSyncAdapter 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
32love. One way to make your application lovable is to make it personal. Android
33devices know who your user is, what services they have access to, and where they
34store your data. With your user's permission, you can use that information to
35make your application a richer, more personal experience.</p>
36
37<p>In this class, you will learn multiple techniques for interacting with your
38user's identity, enabling you to:</p>
39
40<ul>
Dirk Dougherty3b33cdc2011-12-15 15:34:41 -080041<li>Personalize your app by remembering users by their account name(s)
Scott Mainf9cca662011-12-15 10:07:03 -080042<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
44the Google APIs
45<li>Add a custom account to the user's device to authenticate your own
46back-end services
47</ul>
48
49
50<h2>Lessons</h2>
51
52<dl>
Dirk Dougherty3b33cdc2011-12-15 15:34:41 -080053 <dt><b><a href="identify.html">Remembering Your User</a></b></dt>
Scott Mainf9cca662011-12-15 10:07:03 -080054 <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
58login 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