How do you know the phone on which the application is running? How do you know the version of the application that the user is using? Documenting the net I found that to know the version of the app you have to read the AndroidManifest.xml
but. How do you?
Asked
Active
Viewed 527 times
1

Siddharth
- 9,349
- 16
- 86
- 148

John Smoother
- 61
- 7
-
1Please google before posting questions. All I had to do was google for android.os.Build – Siddharth Jul 05 '13 at 05:56
3 Answers
2
Try this out from the Build class
String myDeviceModel = android.os.Build.MODEL;
String myDeviceDevice = android.os.Build.DEVICE;
String myDeviceVersion = android.os.Build.VERSION;
String myDeviceProduct = android.os.Build.PRODUCT;
For more detail use this link Build

Siddharth
- 9,349
- 16
- 86
- 148

Rushabh Patel
- 3,052
- 4
- 26
- 58
0
You can get it as follows:
String manufacturer = Build.MANUFACTURER;
String model = Build.MODEL;
Manufacturer will you name of vendor n Model will give model number.

Usama Sarwar
- 8,922
- 7
- 54
- 80