IMEI Number Capture

Discussions about creating CAPI applications to run on Android devices
Post Reply
pradhanra01
Posts: 26
Joined: August 27th, 2017, 2:43 am

IMEI Number Capture

Post by pradhanra01 » July 31st, 2021, 6:38 am

Dear Gregory Martin,

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

Regards,
Ramesh

Gregory Martin
Posts: 1534
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: IMEI Number Capture

Post by Gregory Martin » August 2nd, 2021, 8:37 am

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.

htuser
Posts: 510
Joined: December 19th, 2011, 6:26 pm
Location: HAITI

Re: IMEI Number Capture

Post by htuser » August 4th, 2021, 7:20 am

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!

Post Reply