On Monday, 11 March 2013 09:05:48 UTC+1, Goddchen wrote:
>
> I'm having issues with the Google Drive SDK for Android.
>
> Everything works fine except for some devices (on which it used to be 
> working, but now doesn't) the Intent that is returned by 
> `UserRecoverableAuthException.getIntent()` isn't doing anything when 
> started via `startIntent(...)`.
>
> All I see on Logcat is:
>
> 03-11 08:31:19.692: INFO/ActivityManager(552): START u0 {cat=[scope:oauth2:
>> https://www.googleapis.com/auth/drive,account:[email protected],extrashash:1088740320]
>>  
>> flg=0x10000004 cmp=com.google.android.gms/.auth.TokenActivity (has extras)} 
>> from pid 27644
>
>
> That's it. Nothing happens on the device.
>
> This is how the Intent is launched:
>
>     Intent intent = e.getIntent();
>>     
>> intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK).addFlags(Intent.FLAG_FROM_BACKGROUND);
>>     startActivity(intent);
>
>
> Any ideas?
>


This is probably because Google  Play Service handling this intent is not 
installed or not up to date. 
This can happen and here's how to handle it : 
http://developer.android.com/google/play-services/setup.html

To sum up, you must call 
GooglePlayServiceUtils.isGooglePlayServicesAvailable() and handle it if it 
returns something else than 
SUCCESS<http://developer.android.com/reference/com/google/android/gms/common/ConnectionResult.html#SUCCESS>
.


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to