final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE); final String tmDevice, tmSerial, androidId; tmDevice = "" + tm.getDeviceId(); tmSerial = "" + tm.getSimSerialNumber(); androidId = "" + android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); String deviceId = deviceUuid.toString(); Log.e(TAG,"deviceId........."+deviceId);
Wednesday 15 November 2017
Device ID
Subscribe to:
Post Comments (Atom)
AutoComplete Address (Updated)
-------------------------------------Activity---------------------------------- package placeautocomplete.iteritory.com; import androi...
-
NavigationView navigationView = (NavigationView) findViewById(R.id. id_nav_std_view ); navigationView.setNavigationItemSelectedLi...
-
----------------------------gradle(build.gradle)------------------------------ apply plugin : 'com.android.application' ...
-
An android SDK that provides a new size unit - sdp (scalable dp). This size unit scales with the screen size. It can help Android de...
No comments:
Post a Comment