2

Possible Duplicate:
How to find serial number of Android device?

how can i get device serial number

3
  • possible dup: stackoverflow.com/questions/2322234/… Commented Apr 5, 2011 at 10:55
  • Definite dup, but don't miss Dave Webb's advice below Commented Apr 5, 2011 at 11:11
  • 1
    @David Caunt - have posted my answer on the other question too. Commented Apr 5, 2011 at 11:20

2 Answers 2

2

There is an excellent post on the Android Developer's Blog discussing this.

It recommends against using TelephonyManager.getDeviceId() as it doesn't work on Android devices which aren't phones such as tablets, it requires the READ_PHONE_STATE permission and it doesn't work reliably on all phones.

Instead you could use one of the following:

  • Mac Address
  • Serial Number
  • ANDROID_ID

The post discusses the pros and cons of each and it's worth reading so you can work out which would be the best for your use.

Sign up to request clarification or add additional context in comments.

Comments

1

from Telephony reading Settings.Secure.ANDROID_ID. "This is a 64-bit quantity that is generated and stored when the device first boots"

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.