views:

124

answers:

3

hi, I could not find out OS of Lot of mobiles? for example MicroMax , Videocon Mobiles in India, they did not give that details in their specification, what os will it have? why they did not give that details? but JVMs are there...any help please?

+1  A: 

different brand phones might run on different mobile phone OS and the commands to find the OS might differ under each SDK. How ever if you want to just find under which os the JVM runs u can try these lines

try{
      String osName= System.getProperty("os.name");
      System.out.println("Operating system name =>"+ osName);
    }
catch (Exception e)
   {
      System.out.println("Exception caught ="+e.getMessage());          
   }

http://www.roseindia.net/java/java-get-example/get-OS-name.shtml

Rahul
how can I find through this code , for China Mobiles and Micro max,videocon,Lava etc...
Mikhail Naimy
I am not sure if you want to find the OS programmatically or just want to check mobile OS version. If you are able to compile and run a java program on a device that has a JVM then the above lines of code should give you the OS in which Java runs.
Rahul
A: 

You can use www.handsetdetection.com to detect the Mobile OS & Browser from the HTTP headers. There's about 50k mobile phones, growing at 100 or so per day.

Richard
did u see OS information of VIDEOCON Mobile?i saw except os name...?
Mikhail Naimy
A: 

http://detectmobilebrowsers.mobi/

It's pretty lightweight, and covers everything without identifying each and every model of device.

Brad