- Top 5 Ways to Add Google Account in Android Without Syncing
- Mehvish
- What’s the Problem with Google Sync
- 1. Quickly Disable Sync
- 2. Disable Apps
- Integrating Google Sign-In into Your Android App
- Before you begin
- Configure Google Sign-in and the GoogleSignInClient object
- Check for an existing signed-in user
- Add the Google Sign-in button to your app
- Start the sign-in flow
- How to Add Google Account on Android Device
- Related Articles
- Sign Out of Google Account on Android Devices
- Steps to Remove or Sign Out of Google Account on Android
- Signing out of Google Account on Android Remotely
Top 5 Ways to Add Google Account in Android Without Syncing
Mehvish
21 Dec 2019
Did you notice that your contacts are appearing on another Android phone? That might be highly confusing at first. The answer to that question is simple. If you had logged into another Android phone using your Google account, then all contacts from that account will appear on that phone. In this post, we shall tell you how to add a Google account without syncing data.
Even when you add someone else’s account in your Android phone, their contacts will start showing up on your phone. The problem is — even though Google lets you stop syncing the contacts, the option appears after the contacts sync takes place. That makes the process useless. In short, you cannot choose what you want to sync from your Google account.
However, here we will tell you various ways to avoid syncing data on Android while adding a Google account. Before that, let’s understand the issue properly first.
What’s the Problem with Google Sync
When you add a Google account on your Android phone — be it a primary or secondary, it starts syncing everything related to that account. For instance, emails, contacts, images in Google Photos, Calendar, Drive, and more. Google doesn’t give you a choice. Now, most users use different Google accounts to keep things separate. Syncing everything to the Android phone defeats the purpose.
There could be many reasons for people to stop syncing their Google data to an Android phone. For instance, I don’t want contacts from all of my Google accounts to show up on my Android phone.
Similarly, when some people buy paid apps from their account, they want to share that with someone else, especially their kids. They do that by adding the Google account on the second device. But by doing so, all their personal data such as emails, contacts, and more show up on the kids’ device. Now that’s bad, in terms of both privacy and safety.
To avoid that, one needs to add a Google account without syncing everything. Let’s check how to do that.
Also on Guiding Tech
5 Best Apps to Transfer Music Between Android Phones
1. Quickly Disable Sync
As mentioned above, Google doesn’t let you choose what you want to sync and what you don’t when you add a Google account. You can disable it after the content has synced. That’s quite stupid.
To avoid syncing things from Google such as contacts before adding a Google account, you need to disable sync quickly.
Here’s how to go about it.
Step 1: Start the process of adding a Google account from Android settings as you would normally do. However, when you reach the last step after entering your password, quickly enable Airplane mode on your phone from quick settings. I recommend that you should do it within seconds.
Step 2: Once enabled, return to the newly added Google Accounts page — Settings > Accounts.
Step 3: Tap on your Google account. Then, tap on Account sync or Sync account.
Step 4: Turn off the toggle or uncheck the box next to the items that you don’t want to sync to your phone. For instance, if you only want to sync Gmail, keep it enabled and turn off the rest.
Step 5: Then, turn off Airplane mode from quick settings. Doing that will bring back the internet services on your phone and resume sync but only for the options that you selected.
2. Disable Apps
The problem with Google data is that even if you disable the sync in the settings, as shown above, the apps still have access to your Google account. Take the case of Gmail.
If you turn off sync for Gmail, the only thing that will stop are the notifications. Meaning, you won’t be notified about new mails. But if the person opens the Gmail app, then they can still see your Google account there. And the new emails will automatically populate by opening the app.
If you don’t want the app to have access to your personal data, you can disable it. Disabling the app will stop it from showing up on your home screen or in the app drawer. Of course, that would mean parting away with other Google accounts too. If you are okay with that, you can disable it in the following way.
Step 1: Open Settings on your Android phone and go to Apps & notifications or Apps.
Step 2: Under All apps, tap on Gmail or any other app that you want to disable.
Источник
Integrating Google Sign-In into Your Android App
To integrate Google Sign-In into your Android app, configure Google Sign-In and add a button to your app’s layout that starts the sign-in flow.
Before you begin
Configure Google Sign-in and the GoogleSignInClient object
In your sign-in activity’s onCreate method, configure Google Sign-In to request the user data required by your app. For example, to configure Google Sign-In to request users’ ID and basic profile information, create a GoogleSignInOptions object with the DEFAULT_SIGN_IN parameter. To request users’ email addresses as well, create the GoogleSignInOptions object with the requestEmail option.
If you need to request additional scopes to access Google APIs, specify them with requestScopes . For the best user experience, on sign-in, only request the scopes that are required for your app to minimally function. Request any additional scopes only when you need them, so that your users see the consent screen in the context of an action they performed. See Requesting Additional Scopes.
Then, also in your sign-in activity’s onCreate method, create a GoogleSignInClient object with the options you specified.
Check for an existing signed-in user
In your activity’s onStart method, check if a user has already signed in to your app with Google.
If GoogleSignIn.getLastSignedInAccount returns a GoogleSignInAccount object (rather than null ), the user has already signed in to your app with Google. Update your UI accordingly—that is, hide the sign-in button, launch your main activity, or whatever is appropriate for your app.
If GoogleSignIn.getLastSignedInAccount returns null , the user has not yet signed in to your app with Google. Update your UI to display the Google Sign-in button.
Add the Google Sign-in button to your app
Add the SignInButton in your application’s layout:
Optional: If you are using the default sign-in button graphic instead of providing your own sign-in button assets, you can customize the button’s size with the setSize method.
In the Android activity (for example, in the onCreate method), register your button’s OnClickListener to sign in the user when clicked:
Start the sign-in flow
In the activity’s onClick method, handle sign-in button taps by creating a sign-in intent with the getSignInIntent method, and starting the intent with startActivityForResult .
Starting the intent prompts the user to select a Google account to sign in with. If you requested scopes beyond profile , email , and openid , the user is also prompted to grant access to the requested resources.
After the user signs in, you can get a GoogleSignInAccount object for the user in the activity’s onActivityResult method.
The GoogleSignInAccount object contains information about the signed-in user, such as the user’s name.
You can also get the user’s email address with getEmail , the user’s Google ID (for client-side use) with getId , and an ID token for the user with getIdToken . If you need to pass the currently signed-in user to a backend server, send the ID token to your backend server and validate the token on the server.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Источник
How to Add Google Account on Android Device
After buying a new Android device, you might be excited and can’t wait to set it up. The language, ringtone, default browser, and other settings, and so on. There will pop up a new prompt asking you to set up your Google Account. Don’t ignore this pop-up, just sign up a Google account, it will help you a lot.
Why we need a Google Account?
By signing up a Google account, you will benefit from it later:
1. It is available to receive emails on your Android handset with your Google account signed in.
2. Easy to sync data like calendar and contacts to your Android phone.
If you didn’t sign up a Google account before, it’s never too late to add a Google account on your Android phone as an old saying goes: Better late than never. Come on, let’s see how to add a new Google account on your Android smartphone, take Samsung Galaxy for example.
Step 1 Go to «Settings» > «Account» > «Add Account«.
Step 2 If you have a Google account, select «Existing«. Or you need to choose «New» to sign up. Here we will choose «Existing» to sign in with the existing account.
Step 3 Sign in with your Google account and the password.
Step 4 Tap «OK» and agree to the Google Terms of Service.
That’s it. With just several simple taps, you can register or add your Google account on your Android phone/tablet. Fantastic, isn’t it? And after that, all the contacts, calendar, settings, and so on, that you’ve saved with your Google account. It helps a lot for those who purchase a new Android and get freak out of the tedious set up.
Related Articles
Ivy Bruce
Ivy Bruce is the Founder and Editorial Director at Recovery-Android Studio. You can also find her on Google+ and Twitter.
How to Transfer Videos from Computer to iPhone
User Guide of Phone to Phone Transfer Software
How to Recover Deleted File from Motorola Atrix
How to Transfer Music from Computer to Nexus
Источник
Sign Out of Google Account on Android Devices
In this tutorial, we’ll see how we can delete, remove, log off or sign out of Google account on Android devices. Using this method, you can remove or sign out of WhatsApp, Facebook, Instagram, Twitter accounts on Android too.
If you ever have more than one account on your Android phone and find yourself wanting to either remove, log out or sign out of an account or add another one instead then it can be quite a complex process. Fortunately, help is at hand, and with this simple tutorial you can sign out in no time.
Steps to Remove or Sign Out of Google Account on Android
If you want to sign out from your Android phone, you can do it in just a few simple steps:
- Open your device Settings.
- Scroll down to “Accounts” or “Accounts and Sync”.
- On newer Android devices, look for “Cloud and accounts> Accounts” or “Users & accounts” under your phone settings. Check out the screenshots from Samsung Galaxy S9+ and Google Pixel.
Sign Out of Google Account on Android
- Tap “Google” (or any other account, such as Facebook, WhatsApp, etc., you wish to sign out from) and select the Gmail ID.
- If you own a device running Android Oreo, tap the account you wish to remove from your device.
Sign Out of Google Account on Android
- On the next screen, tap the 3-dot menu icon or “More” option (on Samsung devices) found at the top-right corner of the screen. Then select “Remove” or “Remove account” option.
- On newer Android devices, you’ll see the “Remove Account” option right after selecting the account to remove.
Log Out of Google Account on Android
- Just tap the option and you’ll successfully remove or sign out of your Google account on your Android device.
Signing out of Google Account on Android Remotely
If you’ve had your phone stolen, then you may wish to use this method. You can easily Remove a Device.
You can do this in just a few simple steps:
- Go to “myaccount.google.com“.
- Click on “Device activity & security events”. You’ll find this option under Sign-in & security.
- Click on “Review Devices”. Here, you will be able to see all the devices you’re signed into (including the one that you’re on now).
- Finally, click on the device that you wish to sign out from, and click “Remove” account access. This will effectively sign you out.
From the screen you are presented with on Step 4, you will also be able to track the location of your device (I have removed it from the screenshot for privacy reasons), and when the device was last used as well.
So there you have it, guys, two simple ways to sign out from your Android device, either directly from your phone or from another device. Although there is another method where you can sign out through Android Device Manager, this has usually given inaccurate location results and “last used” results for me, even suggesting Antarctica at one point! Therefore, I recommend the “My account” step if you’re accessing it from any other device.
Let me know in the comments below if you have any other methods that you prefer to use or another app that may also do the job. I’d love to hear from you!
Источник