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 440 times
1
Siddharth
- 8,842
- 13
- 79
- 133
John Smoother
- 61
- 6
-
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
- 8,842
- 13
- 79
- 133
Rushabh Patel
- 3,015
- 4
- 24
- 57
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,520
- 7
- 50
- 79