Anyone knows how to get IMEI/IMSI in native c/c++ code?

921 views
Skip to first unread message

dodo

unread,
Jan 6, 2011, 8:46:08 PM1/6/11
to andro...@googlegroups.com
Dear all,

I know how to get IMEI code in java code, but there is no API that provided for native c/c++ developer to get IMEI.
I googled that there is  a guy using getIMEIstring() in native code, but I can't find it's definition.

Is there any method that I can retrieve device ID such as IMEI, IMSI?

Thanks in advance

--
Aries

Dianne Hackborn

unread,
Jan 7, 2011, 12:56:43 AM1/7/11
to andro...@googlegroups.com
There is an API in 2.3.  Prior to that, you will need to write JNI code to retrieve it.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.



--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Danny Benor

unread,
Feb 22, 2011, 9:03:41 AM2/22/11
to android-ndk
Can you please detail this API? How soon can be called from startup of
the device?
Thanks
Danny

On Jan 7, 7:56 am, Dianne Hackborn <hack...@android.com> wrote:
> There is an API in 2.3.  Prior to that, you will need to write JNI code to
> retrieve it.
>
>
>
> On Thu, Jan 6, 2011 at 5:46 PM, dodo <dodoh...@gmail.com> wrote:
> > Dear all,
>
> > I know how to get IMEI code in java code, but there is no API that provided
> > for native c/c++ developer to get IMEI.
> > I googled that there is  a guy using getIMEIstring() in native code, but I
> > can't find it's definition.
>
> > Is there any method that I can retrieve device ID such as IMEI, IMSI?
>
> > Thanks in advance
>
> > --
> > Aries
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-ndk" group.
> > To post to this group, send email to andro...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-ndk...@googlegroups.com<android-ndk%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/android-ndk?hl=en.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
Reply all
Reply to author
Forward
0 new messages