Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid app engine java: authenticating users
    primarykey
    data
    text
    <p>I am writing an android application which allows several users to store their data in the cloud using app engine and need the application to authenticate these users so that they cannot see each other's cloud data. It seems that instead of writing my own authentication protocol it would be better to use google accounts especially since each user will already have one on android. This page explains what ClientLogin is (not sure what an installed application is but presumably it's a desktop application rather than a web application):</p> <p><a href="http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html" rel="nofollow">http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html</a></p> <p>However it appears to me that I don't need to use this mechanism as android AccountsManager besides storing your usernames and passwords also stores auth tokens and authrizes the login procedure so the user doesn't even have to worry about what that procedure is (OAuth 2 or OpenID or what not).</p> <p>I have found the following example but don't understand why there is no intent-filter: <a href="http://developer.android.com/resources/samples/SampleSyncAdapter/index.html" rel="nofollow">http://developer.android.com/resources/samples/SampleSyncAdapter/index.html</a></p> <p>The AndroidManifest.xml says:</p> <pre><code> &lt;!-- No intent-filter here! This activity is only ever launched by someone who explicitly knows the class name --&gt; </code></pre> <p>even if I add an intent filter I don't know how to proceed. How can I launch the activity just knowing the class name anyways?</p> <p>Can someone please show me exactly how to code the authentication and persistence of authentication through a token sent with each request to the app engine server, using AccountsManager? I am looking for a bare bones set of lines of code. I know that I can then use the app engine Users API to detect the user logged in, but I need to authenticate first from AccountsManager.</p> <p>Thanks for your help,</p> <p>John Goche</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload