IMEI Number Capture

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
pradhanra01
Posts: 38
Joined: August 27th, 2017, 2:43 am

IMEI Number Capture

Post by pradhanra01 »

Dear Gregory Martin,

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

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

Re: IMEI Number Capture

Post 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.
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: IMEI Number Capture

Post 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!
G.VOLNY, a CSProuser from Haiti, since 2004
Post Reply