Device Id Access

2

I'm developing a Android application and would like to use Device ID where the application runs to compose an ID.

Is it possible to access this information?

The idea is to identify the user of the application by a field consisting of the device id (which I believe is unique) and other information still in studies.

    
asked by anonymous 11.04.2017 / 14:14

1 answer

4

This is possible:

import android.provider.Settings.Secure;

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

Originally removed this question.

Settings.Secure documentation

    
12.04.2017 / 20:18