I
I
Igor2014-07-14 14:32:04
Android
Igor, 2014-07-14 14:32:04

How to mark Androd devices so that after re-installation it can be determined that the application was once installed?

I need to mark devices in such a way that after re-installing the application, I can determine that the application was previously installed and removed. It makes no sense to write a Stamp to a file on the SD card, since after the application is deleted, the application folder is also cleared.
I tried KeyStore and KeyChain - I'm not satisfied that a dialog appears where the user is asked to enter a password or assign a gesture.
I want to mark devices secretly from the user.
How to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2014-07-14
@asdf999

1) Write to the SD card in a non-system directory. Only system ones are cleaned. Cons - users do not like when they shit on the card without asking.
2) Google play services. Truth all the same with an authorization window.
3) Through your server, send all sorts of device IDs there, then ask if there was such an ID.

A
anyd3v, 2014-07-14
@anyd3v

stackoverflow.com/questions/2785485/is-there-a-uni...

import android.provider.Settings.Secure;

private String android_id = Secure.getString(getContext().getContentResolver(),
                                                        Secure.ANDROID_ID);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question