In some cases it’s useful to know the actual device that is being used to run our applications. This can be used to fix specific bugs or deal with specific devices in a certain way. This is an attempt to gather a list of device names as they are found on the actual devices.
How to get the device name (choose one of the following):
-
If you have the Android SDK installed just connect your device and use the command
adb shell getprop
, on a terminal, and look for the [ro.product.model] key; -
Install Quick System Info Pro from the market and then on the “Info” tab scroll down and click on “View properties”. The key you’re looking for is in the “device” section under Model.
-
Make a new corona app with the following code (or insert it into an existing app):
[lua]local sysName = display.newText(system.getInfo(“model”), 10, 10, native.systemFont, 16)
sysName:setTextColor(255, 255, 255) – or 0, 0, 0 depending on the background color[/lua]
Here is my contribution to the list of known device names:
Amazon:
- Kindle Fire
Asus:
- Transformer TF101
Barnes & Noble:
- Nook Color
Google:
- Nexus One
- Nexus S
LG:
- LG-P970
Motorola:
- Droid
- Droid X
Samsung:
- Galaxy Tab
- Galaxy Tab X (note: tab 10.1) [import]uid: 61899 topic_id: 21808 reply_id: 321808[/import]