How to get unique Android ID of your phone device in your Android App
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=-w8Faojl4HI
In this video it shows the steps to implement the code in which the unique Android ID of the phone or device is fetched. The Android ID is unique to each device and the value is returned by the Android OS to the app. It is alphanumeric value. • I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: [email protected] • Complete source code and other details/ steps of this video are posted in the below link: • https://programmerworld.co/android/ho... • • However, the main Java code is copied below also for reference: • package com.programmerworld.androiduniqueid; • import androidx.appcompat.app.AppCompatActivity; • import android.os.Bundle; • import android.provider.Settings; • import android.view.View; • import android.widget.TextView; • public class MainActivity extends AppCompatActivity { • private TextView textView; • @Override • protected void onCreate(Bundle savedInstanceState) { • super.onCreate(savedInstanceState); • setContentView(R.layout.activity_main); • textView =findViewById(R.id.textView); • } • public void buttonAndroidID(View view){ • String stringAndroidID = Settings.Secure.getString(this.getContentResolver(), • Settings.Secure.ANDROID_ID); • textView.setText(stringAndroidID); • } • } • -
#############################