[android-developers] why android g+ revokeAccessAndDisconnect still keep my g+ permission
Hi, I am using G+ login for my app. I have a option for user to disconnect g+ account. case R.id.action_disconnect: disconnectDialog = new ProgressDialog(this); disconnectDialog.setMessage(getResources().getString(R.string.disconnect_dialog)); disconnectDialog.show(); googleApiClient = buildGoogleApiClient(); googleApiClient.connect(); private GoogleApiClient buildGoogleApiClient() { return new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API, Plus.PlusOptions.builder().build()) .addScope(new Scope("email")) .build(); } public void onConnected(Bundle bundle) { Plus.AccountApi.clearDefaultAccount(googleApiClient); Plus.AccountApi.revokeAccessAndDisconnect(googleApiClient).setResultCallback(new ResultCallback() { @Override public void onResult(Status status) { googleApiClient.disconnect(); if (disconnectDialog != null) disconnectDialog.dismiss(); accManager.Log();; } }); } accManager.log return app to login screen. Plus.AccountApi.clearDefaultAccount(googleApiClient); clears user account and I verified as I need to select account again when I click g+ login. but Plus.AccountApi.revokeAccessAndDisconnect(googleApiClient) does not revoke my app permission as when I click g+ login with same account only ask me to select account but does not ask for permission. When I login as a new account app ask for my g+ permission also uninstalling and reinstall my app still keep my g+ permission. anyone know? I followed https://developers.google.com/+/mobile/android/sign-in Thank you. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: why android g+ revokeAccessAndDisconnect still keep my g+ permission
I found my answer buildGoogleApiClient should be private GoogleApiClient buildGoogleApiClient() { return new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API, Plus.PlusOptions.builder().build()) .addScope(Plus.SCOPE_PLUS_LOGIN) .addScope(new Scope("email")) .build(); } On Friday, June 5, 2015 at 11:10:21 AM UTC+8, kevin0228ca wrote: > > Hi, > > I am using G+ login for my app. > > I have a option for user to disconnect g+ account. > > case R.id.action_disconnect: > disconnectDialog = new ProgressDialog(this); > > disconnectDialog.setMessage(getResources().getString(R.string.disconnect_dialog)); > disconnectDialog.show(); > googleApiClient = buildGoogleApiClient(); > googleApiClient.connect(); > > > private GoogleApiClient buildGoogleApiClient() { > return new GoogleApiClient.Builder(this) > .addConnectionCallbacks(this) > .addOnConnectionFailedListener(this) > .addApi(Plus.API, Plus.PlusOptions.builder().build()) > .addScope(new Scope("email")) > .build(); > } > > public void onConnected(Bundle bundle) { > Plus.AccountApi.clearDefaultAccount(googleApiClient); > > Plus.AccountApi.revokeAccessAndDisconnect(googleApiClient).setResultCallback(new > > ResultCallback() { > > @Override > public void onResult(Status status) { > googleApiClient.disconnect(); > if (disconnectDialog != null) > disconnectDialog.dismiss(); > accManager.Log();; > } > > }); > } > > accManager.log return app to login screen. > > Plus.AccountApi.clearDefaultAccount(googleApiClient); clears user account > and I verified as I need to select account again when I click g+ login. > > but Plus.AccountApi.revokeAccessAndDisconnect(googleApiClient) does not > revoke my app permission as when I click g+ login with same account only > ask me to select account but does not ask for permission. > > When I login as a new account app ask for my g+ permission > > also uninstalling and reinstall my app still keep my g+ permission. > > anyone know? I followed > https://developers.google.com/+/mobile/android/sign-in > > Thank you. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Which device is best for testing development?
Hi everyone. I am starting android development which phone is good for testing? or is emulator good enough? I am doing game devlopment, thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] question to you android developers
Hi everyone. Which android device do you use to test your apps? I am starting to develop android, thinking of getting a xperia x10, or should I just get a google n1? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is there a way to invert a Bitmap when using Canvas.DrawBitmap
Hi everyone. I am starting to develop a game. Right now I got a sprite animation going when a player moves across using sprite sheet. In my sprite sheet the character is always facing the same way, left. Now if I want the charatcer to move right, I want it to be facing right. So is there a quick way in android to invert the bitmap after it has been loaded in? Or do I have to create sprite sheet for character facing right? thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can I freely use the Android source?
ok thank you. After I see those cool auto-google stuff and reading through some of the links, I am thinking the answer is yes to my original question. On 10 Aug, 07:46, TreKing wrote: > On Tue, Aug 10, 2010 at 12:58 AM, kevin0228ca wrote: > > Can I freely use the Android source? > > http://tinyurl.com/2w8ddly > > ----- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it normal that a real device fps is much different then emulator?
Hi everyone, I developed a game. On the emulator (not froyo) I am getting like less than 10 fps. But on my Nexus One with froyo I am getting 50 fps. Is this normal? Which one should I trust, I want my game to perform good on phones without froyo Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it normal that a real device fps is much different then emulator?
btw, I also noticed that emulator with smaller resolution(HVGA) has better fps than WVGA. does this imply I should not trust the fps on emulators? On 7 July, 23:01, kevin0228ca wrote: > Hi everyone, > I developed a game. On the emulator (not froyo) I am getting like less > than 10 fps. > But on my Nexus One with froyo I am getting 50 fps. > Is this normal? Which one should I trust, I want my game to perform > good on phones without froyo > Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to return to root activity after the task is cleared?
Hi everyone. I have a app with 2 activities, A B A has a button that launches a new intent for B. When at B I press home, then launch app again, B is resumed with onResume(). But if after I press home, I use something like taskiller to clear tasks, then I launch app again, it still shows B, but onCreate() is called. What I want for the second situation is for the app to start A instead of B. How can that be done? Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can I freely use the Android source?
Can I freely use the Android source? i.e: Can I take one of the bulit-in apps, then with no or minimal modifications to the oringinal contents, enhance it with new features, and publish as a new app? Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why is emulator with WVGA loading image from drawable-mdpi?
Hi everyone. I read about in the google documents that the 3 folders corresponds to different screen types and that android would select the image from different folders automatically according to the screen type. I read that WVGA will load from drawable-hdpi and HVGA will load from drawable-mdpi. When I tested with 2 emulators both running 2.1, each with HVGA and WVGA. It turns out that they are both reading the image in mdpi. If I deleted the image in mdpi then they read from hdpi. Can someone answer why emulator with WVGA is reading from drawable- mdpi? thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Why is emulator with WVGA loading image from drawable-mdpi?
Oh thanks, I have it now. I was not declaring a min sdk, so are all false as it should be before sdk 1.6. Now I set it to be all true, and the images are loaded correctly. There are quite a lot of topics with this issue, next time I'll search the posts first. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en