I build an android app with Android Studio with Java and I want to get the mac address from the phone limit user any action do and somethings else who can help me? my code is this but didnt work
private void getmacadres() { String macAddress = android.provider.Settings.Secure.getString(this.getApplicationContext().getContentResolver(), "android_id"); Toast.makeText(G.Context, macAddress, Toast.LENGTH_LONG).show(); }