martedì 28 gennaio 2014

Come ottenere l'identificativo univoco dello smarphone!

Per ottenere l'id univoco che identifica il tuo smartphone, è necessario inserire nella tua Activity le seguenti righe di codice:

import android.provider.Settings.Secure;

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

Nessun commento:

Posta un commento