To get the Unique Device ID on Android phones/tablets, we use the following:
((TelephonyManager) ctx.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId()
But for Kindle Fire, we can't get one.
Any ideas?
You should try using the following line:
deviceId = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID);
This will get the device ID from tablets, the code you're using only works on phones (it will return null
on tablets)