Android google account synch - android

I am working on one application. It works on C2DM. Everything is working fine. It is device tracking application. But if i change sim and restart my device my Google account is not automatically signing in and it asks for Google account password and not getting notifications.
I want when i change my sim and restart the device Google account should automatically sync and should not ask for password.
Any help would be appreciated..

I don't think it's possible. It's coded into the OS that a SIM change will clear all account settings. You could roll your own OS patch if you felt inclined though.

Related

Can I develop the app which should never delete.(Android)

Can I develop the app which should never delete even after reset the mobile Or It should block to RESET the mobile.
If any suggestion please help out.
Thanks in advance.
The proper way to do this is to require employees to install an app that provides whatever certificates/credentials necessary to access company resources. This app would use the Device Administration APIs to restrict certain policies on the device. As long as the app is enabled as a Device Administrator in the settings of the device, the user can't manually uninstall it. (They can still factory-reset their phone, but in that case they will no longer have the app and so lose whatever certificates/credentials allowing access to company resources.)

How to limit my paid app for only one device on same account in Android and iOS

I will publish paid app for android and ios. I want that one account can only install and run on one device. Otherwise I want to block the app on first device. Is there any way to do this?
Note: I know there is a lvl for Google Play. But I am not sure, it does this exactly. Sorry for my english.
What you seem to need to do, is to get the device_ID and pair it with the account.That shouldn't be hard.
You get the device ID when your customer registers ,than at login you check the login credentials AND the device ID...
Here's pretty much all you need regarding the device ID (not the login,I trust you can handle it yourself)
How to get unique device hardware id in Android?

In Android, ensuring only pre-decided users can only use the app

I'm making an app, which I will distribute via playstore. However, though the app can be installed by anyone in the world, it can only run for selected users who I know.
Below are the possible ways I have figured out,
Check the account E-Mail ids on the phone and if that matches with the one's saved within the app code.
Check the mobile number on the phone and see if that matches with the one's saved within the app code.
When the app runs for the first time, it will send an SMS to my phone. I will reply to that SMS either saying YES or NO. If I reply YES then only the app will run for that user, else it will not.
I would like your feedback on these mechanisms. If there are other ways let me know about that too.
Thanks...
I think your best options are:
Make users log-in using an e-mail and a password (you could ask the user to register and if he uses an e-mail that is known to you, send a password to that e-mail [make the user change it later though])
Beta testing - This allow you to choose wich users will be able to install your app by creating a community on Google+ to beta test your app.
Maybe both.

How can the application detect the user and/or the device have never installed the application before

Scenario
The user get only the first time free credits in the app. After that we want to do fraud prevention. We need to check if the user and/or the device have not installed the application before.
We can accept the risk of a factory reset or rooted devices
What I tried already
Listen to Intent.ACTION_PACKAGE_FIRST_LAUNCH. After reading I understand that this event is only send to the Play store and can't be used in any other app.
Check the application package info for the field "firstInstallTime", this is reset when the user removed the application and do a install.
Android Backup Service, but the user can stop the backup and reset data, so this is at no use.
App licensing looks like a promise solution to detect if the user have already installed the app. But with limitations the following is described: "You can implement licensing controls for a free app, but only if you're using the service to provide APK expansion files." Do we need to make a small APK expension file, just to verify the license?"
make a fingerprint of the mac address, imei, android id and some other stuff. But would this make the scans of Google play violating? I don't use it for advertising, but i'm afraid they think we violate the google play policy.
how you can help me
Can you help me to choose a good direction to solve this issue and maybe give some better methods to do this verification.
Factory reset, second-hand phones and users with multiple devices will be your main problems.
The only way to uniquely identify a user is an authentication through login/password or OpenId account.
Hey there if you are managing user information at the your server than what you can do is take the IMEI number of the device and send it to your server. It will record the information of the user. Now if he/she uninstall and install app again your app will again send IMEI number at server now you can check the IMEI already present or not, If present then user have already installed your application, more over you can manage same thing from the login ID, but that can be faked by the user. More over it will not violate any thing. User can see while installing in the permissions that your app will get the system information.

fake android account for testing

I would like to have a fake android account I can use for testing adding/deleting/merging/referencing contacts. In my searches, I'm a little surprised something hasn't turned up. I am new to the android scene. How do people normally go about this?
Thank you.
You can use the android emulator that comes with the SDK, that is about it unless you are willing to use your own device.
I'm not sure if the android emulator allows access to contacts though.
For testing, you can just create another gmail.com account (e.g., mytestaccount#gmail.com) and use that to sign in on the emulator (or test device, if you have one). Remember to sign out of your current Google/gmail.com account so you get the "Sign up" option on the Gmail page.

Categories

Resources