Generating or getting an unique ID for each device

Put your problem here if it does not fit any of the other categories.

Generating or getting an unique ID for each device

Postby gskbyte » Tue Jun 08, 2010 11:48 am

Is it posible to get or generate an unique ID for each device where your app is running? Something like IMEI, but for any device with Android?
gskbyte
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Tue Jan 12, 2010 1:51 pm

Top

Re: Generating or getting an unique ID for each device

Postby padde » Tue Jun 08, 2010 3:03 pm

Try this...
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Settings.Secure.getString(this.getContentResolver(), Secure.ANDROID_ID);
  2.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Note: The emulator returns null so be aware.
padde
Master Developer
Master Developer
 
Posts: 443
Joined: Wed Apr 08, 2009 4:52 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 8 guests