google-account

java.lang.NoClassDefFoundError on Android with GoogleAccountCredential.newChooseAccountIntent()

谁都会走 提交于 2019-12-01 08:24:32
I am developing for Android 4+ with Eclipse Juno ADT bundle + Google Plugin for Eclipse. I need to programmatically log into a google account to use the Google Calendar API. For this I am making use of account manager. I get the following error: 05-05 13:28:55.605: E/AndroidRuntime(11186): FATAL EXCEPTION: main 05-05 13:28:55.605: E/AndroidRuntime(11186): java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker 05-05 13:28:55.605: E/AndroidRuntime(11186): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.newChooseAccountIntent

java.lang.NoClassDefFoundError on Android with GoogleAccountCredential.newChooseAccountIntent()

最后都变了- 提交于 2019-12-01 06:07:02
问题 I am developing for Android 4+ with Eclipse Juno ADT bundle + Google Plugin for Eclipse. I need to programmatically log into a google account to use the Google Calendar API. For this I am making use of account manager. I get the following error: 05-05 13:28:55.605: E/AndroidRuntime(11186): FATAL EXCEPTION: main 05-05 13:28:55.605: E/AndroidRuntime(11186): java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker 05-05 13:28:55.605: E/AndroidRuntime(11186): at com.google.api

How can an application server associate Google accounts to a user's device?

谁说我不能喝 提交于 2019-11-30 23:14:51
I want users to be able to enter data from a web server and/or native PC app and transfer it to their chosen Android device in much the same way that Google Play's install on device works. I'd like to use the user's Google account authentication to establish a link between the application server and the user's Android device that registered with GCM. I couldn't find any mention of how to handle this kind of authentication in the Google Cloud messaging API documentation , but did find this unanswered question in the GCM forums. I'd like to authenticate users from a web application via the his

Get user name, avatar from google account

时间秒杀一切 提交于 2019-11-30 14:57:18
I'm developing an module that use GoogleAccountCredential to login, upload & download a file to GoogleDrive. I want to get user first, last name and avatar of google account for display on my login feature. I've try GoogleAccountCredential.getAccountName() But It return only account name. And see about OAuth 2.0 but not sure It can provide which I needed. Don't know where to get those infomation, any suggestion also help me. It's awsome if have some examples ianhanniballake's answer works, but there is a better way to do it. You don't need Google+ sign in to get user info. Authorize with scope

Android login in my app with google credentials

試著忘記壹切 提交于 2019-11-30 09:25:47
HI I'm developing an application in wich I want to permit the user to login to my server with his Google account without asking him the credentials because I know that are saved into the AccountManager class. The problem is that I don't know how to autenticate the user because the account ID is just stored in Google's server, so Where can I find an ID for the account and how can I use it to autenticate user? I'd like to follow these steps: user choose one of the stored account, I get an id, send it from the terminal to the server, and I answere that "he trust" this user, after this I save this

Android - sync contact add programmatically to google account

为君一笑 提交于 2019-11-29 23:08:29
问题 In my app I need to add contact to default google account and sync it. Here my code: public static void addContact(Context context, String DisplayName,String WorkNumber, String MobileNumber, String emailID, String jobTitle, String company, String address){ ArrayList <ContentProviderOperation> ops = new ArrayList < ContentProviderOperation > (); String account = getUsernameLong(context); ops.add(ContentProviderOperation.newInsert( ContactsContract.RawContacts.CONTENT_URI) .withValue

Is it possible to use GCM without Google account AND Google Play Services on the device?

那年仲夏 提交于 2019-11-28 23:41:17
I'm writing a system app for a device that has no Google Play Services nor Google Play Store installed. I want to implement push notifications. The device is running Android 4.2.2 and official Google GCM docs say: A Google account is not a requirement on devices running Android 4.0.4 or higher. But these docs are related to the new version of GCM which uses Google Play Services ( not an option for me ) So I tried using the old, deprecated GCM helper library. I installed GoogleServicesFramework4.0.x on the device ( I can install GSF. but not Google Play Services ) I am now getting the

Syncing app data to Google Account

柔情痞子 提交于 2019-11-28 23:41:16
How exactly does one use the Google account sign in feature in Android Apps? For example, is it possible to store application data such as tables, shared preferences etc., to a google account from an Android app, and what advantages does this offer over a normal account creation feature inside an app? The reason I ask is that in the app I plan to develop, it will contain an sqlite database to store rss urls to a user, along with shared preferences and content providers. How would the login process differ between the custom login for the app vs the Google Account login process? I recommend

GoogleAccountCredential name is null despite calling setSelectedAccountName (Android 6.0)

穿精又带淫゛_ 提交于 2019-11-28 12:09:17
I've created an endpoint using a secured backend and have been using it since March on an app I'm building (source docs here ). I recently installed the latest version to my Android 6.0 device and an odd error popped up (it works perfectly on 4.2.2 & 5.1). The specific error is: IllegalArgumentException: the name must not be empty: null Which I traced to an error with the credential, you can see the code below. On Android 6.0 account may be "user@gmail.com" but the string 'test' turns out to be null! Is there something specific about 6.0 that changed GoogleAccountCredential? public static

Is it possible to use GCM without Google account AND Google Play Services on the device?

只愿长相守 提交于 2019-11-27 21:19:55
问题 I'm writing a system app for a device that has no Google Play Services nor Google Play Store installed. I want to implement push notifications. The device is running Android 4.2.2 and official Google GCM docs say: A Google account is not a requirement on devices running Android 4.0.4 or higher. But these docs are related to the new version of GCM which uses Google Play Services ( not an option for me ) So I tried using the old, deprecated GCM helper library. I installed