java - Get IMEI in GenyMotion emulator -


hi i'm developing android application runed on genymotion emulator , in application need device imei null value same logic works avd emulator or android smartphone

telephonymanager telephonymanager = (telephonymanager) getsystemservice(context.telephony_service); imei = telephonymanager.getdeviceid(); 

with permission added manifest

<uses-permission android:name="android.permission.read_phone_state" /> 

the .getdeviceid()

is not reliable , yes returns null if emulator. found link might you. alternative

link 1

link 2

link 3


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -