How to fetch both IMEI NO. using corona idk

Hi there ,

I have a Android device , i want to fetch  both the IMEI numbers of it .

i have used :

system.getInfo(“deviceID”)

 


 

CODE :

 

local myText = display.newText(system.getInfo(“deviceID”), 100, 200,native.systemFontBold, 25 )

myText:setFillColor( 1, 10, 0.5 )


 

But it only returns a single IMEI i.e deviceID.

 

please specify a way to fetch both the IMEI numbers of a Android device.

 

 

​-Thankz ​in Advance

The below may be applicable:

https://coronalabs.com/blog/2016/02/23/breaking-change-android-6-and-device-ids/

Hi Alex ,
thanks for your reply , but my find i know all that stuff of breaking change.
please read my above post carefully :
i want to fetch both IMEI numbers of a Android device.

system.getInfo(“deviceID”)

You also have to have
android.permission.READ_PHONE_STATE
In build.settings

hi scottrules44 ,
alrdy i have been used & listed the solution in my question ??

local myText = display.newText(system.getInfo(“deviceID”), 100, 200,native.systemFontBold, 25 )

myText:setFillColor( 1, 10, 0.5 )
 

and yes i am using android permission in build settings.

please tell me how i can fetch the both IMEI Numbers from a dual android device.
 

Are you talking about dual sims devices. I have not used one but I am pretty sure it depends which sim selected

The below may be applicable:

https://coronalabs.com/blog/2016/02/23/breaking-change-android-6-and-device-ids/

Hi Alex ,
thanks for your reply , but my find i know all that stuff of breaking change.
please read my above post carefully :
i want to fetch both IMEI numbers of a Android device.

system.getInfo(“deviceID”)

You also have to have
android.permission.READ_PHONE_STATE
In build.settings

hi scottrules44 ,
alrdy i have been used & listed the solution in my question ??

local myText = display.newText(system.getInfo(“deviceID”), 100, 200,native.systemFontBold, 25 )

myText:setFillColor( 1, 10, 0.5 )
 

and yes i am using android permission in build settings.

please tell me how i can fetch the both IMEI Numbers from a dual android device.
 

Are you talking about dual sims devices. I have not used one but I am pretty sure it depends which sim selected