public static String getDeviceID(Context mContext) {
String deviceId = Settings.Secure.getString(mContext.getContentResolver(),
Settings.Secure.ANDROID_ID);
return deviceId;
}
This shows a security warning,
"Using 'getString' to get device identifiers is not recommended "
How to resolve this warning?