7

I want to generate android device unique id for my android application to create favourite according to user device udid.

4

3 に答える 3

19

すべてのデバイスには一意の ID があります。

 import android.provider.Settings.Secure;
 private String android_id = Secure.getString(getContext().getContentResolver(),
                                                            Secure.ANDROID_ID); 
于 2012-07-02T11:09:44.890 に答える
0
private String uDiD = Secure.getString(getContext().getContentResolver(),
                                                        Secure.ANDROID_ID); 
于 2016-09-21T22:07:17.477 に答える