Page 1 of 1

IMEI Number Capture

Posted: July 31st, 2021, 6:38 am
by pradhanra01
Dear Gregory Martin,

Is there any function to capture IMEI Number of Android Device while entering/collecting data ?

Regards,
Ramesh

Re: IMEI Number Capture

Posted: August 2nd, 2021, 8:37 am
by Gregory Martin
You can't get the IMEI specifically, but you can use the getdeviceid function, which returns the ANDROID_ID:

https://www.csprousers.org/help/CSPro/g ... ction.html
https://developer.android.com/reference ... ANDROID_ID

If you're looking for the IMEI, this won't help, but if you are looking for a unique number that you can use to identify a mobile device or computer, this should work.

Re: IMEI Number Capture

Posted: August 4th, 2021, 7:20 am
by htuser
Dear Pradhanra,
You can do it programmatically with CSEntry SystemApp object feature (https://www.csprousers.org/help/CSPro/systemapp.html).
Please follow this tutorial and implement a small android application
https://www.tutorialspoint.com/how-to-g ... in-android

Then, use use SystemApp to transfer results to CSEntry item.

However, kept in mind that newer Android versions restrict having IMEI programmatically:
https://stackoverflow.com/questions/551 ... -android-q
But, some persons talk about workaround...
Hope this help you!