Android :: Official Way To Authenticate For Google Data API On Android Using AccountManager Accounts?
Aug 16, 2010
I'm trying to use the Google Data API for an installed application on Android 2.1. I don't want the user to have to enter their credentials if he already has an account configured on the device. Thus, I'm using the AccountManager with Account type "com.google".
But where to go from there? There are no samples from Google on how to do Google authentication (authTokenType etc.). There's a project trying to do it (http://code.google.com/p/google-authenticator-for-android) in a general way but without any success, yet.
This is really keeping back applications like Google Reader clients which have to ask the user for their Google credentials (which hopefully nobody gives them).
View 2 Replies
Jan 8, 2010
I've got working code that uses the gdata to retrieve feeds from my user's Google Finance portfolios, but I had to use setUserCredentials(username,password). What I'd like to do is avoid asking the user for their username/password since the Android device already has access to their Google account.
I believe I should be able to do this with setUserToken(String), but I can't figure out how to get the appropriate token from Android. I've tried AccountManager.get(context).blockingGetAuthToken() but that's either not the correct call or I'm passing it the wrong arguments. Has anyone gotten gdata working with the user's existing Google credentials on the phone?
View 1 Replies
View Related
Nov 12, 2009
I am working on writing (and eventually releasing on the Android marketplace) a Google authenticator that will authenticate with Google and return a Google Auth Token (see: http://code.google.com/apis/gdata/docs/auth/overview.html). The ultimate goal is to have this authenticator mirror the behavior of the com.google authenticator that comes with the Motorola Droid.
This will hopefully allow developers to have such an authenticator available to them on the SDK emulator as well as end-users with any phone running Android 2.0 that does not have the official Google version of the authenticator (ie: custom ROMs, future phones that don't get the full Google package, etc.).
Also, since there is no word on how long before any phones besides the Motorola Droid get Android 2.0, this will hopefully allow developers to start leveraging the new AccountManager APIs sooner rather than later (ie: via the SDK emulator).
I have created an open source project for this endeavor (see link below) that contains the first bit of work I have done on getting the Authenticator writen. If you are interested in contributing let me know, I am definitely open to the help or if you can offer insight as to the proper use of the new AccountManager API or some place I am using it wrong it would be much appreciated. Worst case scenario I'll plug away at this in my free time and at least people can use it as a reference for writing their own Authenticators in the future. [url]
View 4 Replies
View Related
Nov 5, 2009
I'm currently working on a project that uses Google App Engine as a server. I see that prior to the Android 2.0 SDK there was no way to directly access a user's Google Account information for the purposes of authentication. Do the new Account Manager APIs now make it possible to automatically log a user into a GAE app? Is anyone else working on something like this? Are there any publicly available examples on how to accomplish this?
View 2 Replies
View Related
Jul 9, 2009
I'd like to be able to send a POST request from an Android app to App Engine and have it linked to the user's Google account.I read that you need to obtain an authentication token and send it with the POST request. Does Android provide a way to request this token?And how would GAE process it?I feel like this should be easy and I'm missing something obvious.
View 2 Replies
View Related
Feb 10, 2010
way I can Authenticate a Google Apps User in a Android Application? One approach I know of is to take could take their username and password in a android view, and use the clientLogin interface (http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html). However I was wondering if there was a different approach, maybe pushing to a browser window where it would show the google login for that domain, but I would not know how to get the details back to the application, after the authentication is done.
View 2 Replies
View Related
Jul 5, 2010
According to: What's changing : About the conversion - Accounts Help, Google will be merging Apps Accounts and regular accounts. Anyone know how this might impact Android? I currently use an Apps account and a regular account both with a myname@mydomain.com login. Once I got the hang of which services used apps vs, regular vs. both (and how to tell which one I was using for what), this seems to work OK on the desktop. But on Android certain services like Checkout seem to only work with @gmail.com accounts. I wonder if this change will make things more or less confusing on Android.
View 13 Replies
View Related
Jun 21, 2010
I'm trying to use AccountManager to store account information and have implemented an authenticator, but I keep getting exceptions like the below that crash the phone. Comparing with sample code this seems to be because I don't have (or particularly want) a SyncAdapter and associated service. Is there a trick to using AccountManager without adding a SyncAdapter?
CODE:.................
View 4 Replies
View Related
Oct 20, 2010
The primary account on my N1 is a Google Apps account. I added code to one of my apps to support the LVL. Now I am trying to test it on my N1. Since the address associated with my market publisher acct is an @gmail address and not my Google Apps account the license check fails every time. I tried adding my Google Apps account to the list of "test" accounts in my profile. It continues to fail. Has anyone else encountered this? Has anyone been successful using a Google Apps account as a test account?
View 3 Replies
View Related
Apr 15, 2010
I have one gmail (personal) account, and one google account (for work, not email, just google services account).My main account is my gmail one on android and it's fine.But I would also like to see my work contacts and calendar.I added it to my "accounts & sync settings" but it always said "Sync is OFF", no way to turn it on for this account.Just to make it clear, my work account is NOT a gmail account, I use my work email address as a log-in for all other google services (mainly calendar and contacts)
View 2 Replies
View Related
Nov 24, 2009
I have written a simple Authenticator service to work with the new AccountManager API introduced in 2.0. When I launch a test app that uses the authenticator the authenticator service is launched (as expected) and it's onBind method is called. However, if I run my test application a second time in the same emulator (without restarting the emulator) my service is not launched and onBind is not called.
So far the only way I have found to get my service to launch and onBind to call again is to restart the emulator, which is a very time consuming process. I have looked at the Devices view in Eclipse and ensured that all of my processes have been killed, just in case one of them was just being rebound to or something.
View 2 Replies
View Related
Apr 9, 2009
Even a "beta" SDK would be helpful. There are lots of app developers who don't necessarily know how to build cupcake from the GIT. Given that HTC Magic (based on cupcake, I heard) is rolling out real soon now, wouldn't it be nice to give the app developers a chance to test if their app is compatible with cupcake?Sure, Android API is supposed to be backwards compatible. However, there are quite a few bugs in the G1 that I had to work around with ugly hacks. Now I start to worry if those hacks would break on cupcake.
View 11 Replies
View Related
Sep 8, 2010
I'm building a Webapp that uses OpenId to authenticate users, like Stackoverlfow does. There will be a mobile App too, e.g. Android or iPhone. These Apps have to authenticate or login somehow, to access data and update stuff that belongs to the user. Since there is no username and password one could provide to authenticate the mobile device, I wonder how to achieve this.Two ways came into my mind:Generate some key on the server that must be entered on the device. This key will be send as auth-key when the mobile device sends or requests data and the user can be linked that way. When using this Option, the key should be transported somehow to the user, so he doesn't have to type it in. Maybe via email, SMS or by scanning a barcode. The mobile App uses the Browser or shows an integrated Web-Panel that opens a special page of the Webapp. On this page, the user has to login in, and could then allow the mobile App to read and write data. My question is: Are both ways possible and save? Which one would you prefer? What are the details to watch out for? Are there any other ways to do this? If I got it all right, it would not be possible to use OpenId on the Device, and link the mobile and the webapp that way, right?
View 3 Replies
View Related
Sep 24, 2010
I need to pull data from a REST web service in my android app. The web service requires authentication.
I need to first call a login method, which will return me an authToken and JSESSIONID as part of the response header. I need to pass these items back with every request. I'm currently using: org.apache.http.impl.client.DefaultHttpClient.DefaultHttpClient() to call the login method. I can see the authToken and JSESSIONID are being returned in the response header.
Are there any existing tools or classes that might provide some sort of management functionality that I can easily integrate with my android app?
View 1 Replies
View Related
Jul 9, 2010
Here's the deal: I will be upgrading to the Droid X very soon. I know that when you setup the phone you have to tie it to a Google/gmail account, but what if my wife wants to check her email and stuff as well? She isn't going to have a smartphone of her own. Is there a way to designate an app or widget for her Google account on my smartphone? Or will she have to go through the browser every time and log-in?
View 2 Replies
View Related
Aug 18, 2010
Is there any way to sync multiple google calendars on multiple accounts. I would like to have both of our calendars synced so we don't double book things. She has her own Android so we only want to sync the calendar.
View 4 Replies
View Related
Oct 20, 2010
I did a search and found some old (4-11 months old) threads but I'm hoping there's been some updates.I just decided to give Google Talk a whirl and it looks great, but the first account I added to my phone isn't the account I primarily use (which has the majority of my contacts). Is there a way to switch accounts in Google Talk so I have all the contacts from my main account?If not (that'd be something they need to address in a GTalk update) is there an app that will allow me to use the other?
View 3 Replies
View Related
May 14, 2010
I am getting the Archos 7 Home Tablet for my birthday (ARCHOS) and it doesn't have the official Google Marketplace installed. I have read several places that it is possible to download the .apk file, but I can't find it anywhere. Does anyone have info about that?
View 5 Replies
View Related
Dec 11, 2009
My main Google account is a "Google Apps For Your Domain" (GAFYD) account. I have my Gmail, Calendar, etc. on this account. Unfortunately, GAFYD doesn't include Google Voice. Following the Google recommended method, I set up a regular Google Account for Google Voice (see here: Using your Google Apps address with Google Voice - Google Voice Help) that has the same username (but remains a distinct account). I do not have Gmail on this account because that would create issues. I set my phone up with my GAFYD account, as per this link: Android and G1 Forums, Mods, Hacks, News, Downloads, Skins, Themes, and more! | ModMyGphone - View Single Post - Primary Google Account in conjunction with Google Apps Account on Android Phone
Most functionality is there. In particular, Google Voice works with Gizmo and Sipdroid. However, there are some problems. Here's a thread discussing some of them: Anyone else having issues with your Google Apps for Domains account on the Droid? - Google Mobile Help
1. Cannot buy paid apps in the market.
2. Unable to use my maps layer in maps app.
3. Cannot login to google finance app.
I want to solve problem #1 - Cannot buy paid apps in the market. Many people are solving it by using another regular Gmail account. However, that's not working for me. I do have another regular Gmail account and I have been using it on my desktop computer for Check Out. However, Android on my Motorola Droid will not accept this account. I assume because it uses the same username as my GAFYD account (which is the way Google recommended doing it!). I have all my purchase history and credit card info in that account already. Creating YADGA ("yet another d*** Google account") is not an option.
View 2 Replies
View Related
Oct 9, 2009
Is there a list of Intents supported by the GMail app included with official Google phones? I can look at the source of the other apps to see what's available, but the GMail app is closed source so I'm not able to go that route. I have the basic MAIN intent running fine, but would love to be able to jump right into a specific conversation and things like that.
View 3 Replies
View Related
Aug 12, 2010
Does the Android License Verification Library support a device logged in to multiple Google accounts?
Does it use the first Google account to determine who purchased an app?
View 1 Replies
View Related
Apr 16, 2012
Android 3 and 4 have a new option that allows the user to add new a Google Account to the phone by using the Browser Sign-In. The option is available when you try to add a new Google Account to Android (see screenshot).
Use Browser Sign-In with SAML based Single Sign-On? It is not working with our SAML setup.
View 1 Replies
View Related
Mar 2, 2010
For my CS bachelors I am doing a Senior project using android and google maps.My vision was to do a (relatively) simple Dijkstra shortest path using google maps road data. I was going to add elevation change along with 2D distance. I am doing well playing with maps in android but I am completely stumped trying to access google maps data in any sort of searchable form.How would I go about accessing the data for say intersections of roads (lat/long) in a particular area?There has to be a way to pull that data in some sort of tree form. It seems like it may be possible with kml?Any pointers would be awesome.I want my paths to follow roads but If i cant this is going to turn into an orienteering application fairly fast.
View 2 Replies
View Related
Aug 2, 2012
I am having an issue ever since Jellybean came out. I was running my Galaxy nexus happily all the way from 4.0.2 to 4.0.4 with no problems connecting to my workplace's 802.1x network using TTLS and PAP for phase 1 and 2 authentication, respectively.
As soon as I put a JB 4.1.1 ROM on it, it doesn't work. It still sees the network, and it correctly displays that it is secured with 802.1x. However, whenever I try to authenticate, after trying to connect a few times, it just reverts to being an inactive saved network or comes up saying "Authentication problem".
I would have chalked this up to having simply installed an early ROM, but then I went out and bought a Nexus 7, and lo and behold, it has the same issue! I have taken about 10 different posted versions of the wpa_supplicant file and put them in /system/bin with proper permissions, but no dice.
View 1 Replies
View Related
Jul 28, 2010
It seems that 2.2 locks google talk into the first google account you sign up with.I thought on 2.1 I could sign in to the account I wanted to use, however it appears that's not the case now.I use gmail (for google checkout) however my main "google" account is an apps account.So I believe for the market to be associated correctly with my gmail account, that one needs to be created first.Any way to get google talk to use my apps account, or any way to play with the accounts (create, clear/remove, re-add) to get them setup so the market works with my gmail account but gtalk uses my apps account?
View 1 Replies
View Related
Sep 1, 2010
I've read and re-read and (still) read some more about this topic, but I am getting no where... Perhaps If I post the question, some one can PLEASE assist?I have a Gmail addy for a side business, and I created that account on my (EVO) phone "initially". I originally did a sync with it. However, after some thought, I decided to create a personal Gmail account and wanted ALL of my phone's contacts to sync with THAT newly created personal Gmail account. No can do.Although I have the original Gmail account's settings on "off" (not to sync at all), when I sync the phone to Google, all calendar events are there on the new G account, but NOT the contacts. They are simply not coming over?
View 6 Replies
View Related
Sep 21, 2010
I just got the Galaxy S yesterday and so far I love it.But when I added my Google account for syncing purposes, it sync'd my contacts and calendar twice.It's really annoying.So I get 2 email notifications for the same email and I see 2 of the same entries in my calendar.When I go into SETTINGS -> Accounts, I see 2 Google accounts. One has the Google symbol in Blue, the other is in Black.
View 1 Replies
View Related
Aug 9, 2010
Dear Android geeks, I am new to android development, and i want to develop an app in which u can set some data and location in google map and at a later time we can retrieve it also. Please help me out with it I am not able to set data in maps.
View 20 Replies
View Related
Oct 8, 2012
Any way to setup two different google accounts to stream music from the google music service minus using two different devices. Is it even possible.
View 2 Replies
View Related
Sep 26, 2010
I bought a Fascinate yesterday and I have two google accounts.The primary one works fine. However the second one has a calendar that's not being picked up by my phone.Under 'Accounts and sync 'Manage accounts there only 'Sync contacts' and 'Sync Gmail' but no 'Sync Calendar' like I can with my primary account.I set up the calendar in Google and got the mobile part registered and received the code and it says it's working...the phone just isn't realizing it's there.
View 8 Replies
View Related