Discussion on:

3
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
I know what I'm going to be doing in my spare time today. Thanks for the article.
A lot of words to bring attention to android.os.Build. While you were in there, did you notice any other interesting fields? Any usable info in BOARD, DEVICE, FINGERPRINT, HARDWARE, MANUFACTURER, MODEL, PRODUCT?
I can't think of a situation where the distinction between hardware and emulator is needed. Yes, I may need to know if the device has WIFI or bluetooth or other characteristics not available on an emulator, but all of these can be determined by other means.
0 Votes
+ -
I primarily use BUILD.MODEL to check the specific device (e.g. Kindle Fire, Nook models, etc.). BUILD.MANUFACTURER is also useful, with a little less resolution. In some cases, BUILD.PRODUCT is recommended. Research is needed for each specific model you want to identify, because not every manufacturer makes it easy.

One more that I haven't used, BUILD.SERIAL, is available in Android 2.3+.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.