Getting build number/version programatically

by Mark K » Sat, 28 Feb 2009 05:19:04 GMT


Sponsored Links
 Does anyone know of a way to get the version/build number
programatically? I dug into Settings source code, it indicated that
this info could be read from the file /proc/socinfo, but this file
doesn't seem to exists on any of the devices I'm working with?!
Wondering where else I might be able to get this info. Thanks

                       mark
--~--~---------~--~----~------------~-------~--~----~



Getting build number/version programatically

by Mark Murphy » Sat, 28 Feb 2009 05:22:05 GMT


 


Check out android.os.Build and android.os.Build.VERSION.

Note that some of these values may be unusual in the emulator (e.g.,
null brand).

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Getting build number/version programatically

by sm1 » Sat, 28 Feb 2009 07:50:04 GMT


 You could use *Device Internals for r1* which is free in Tools, and
scroll to section *android.os.Build*, it will list you the fields and
values that you can obtain from this class and you can pick the one
that suits your requirements. You can also see other classes that give
you other similar values.

serge





--~--~---------~--~----~------------~-------~--~----~



Getting build number/version programatically

by mark . kahrl » Sat, 28 Feb 2009 08:16:07 GMT


 Thanks for  that info, I guess that should have been intuitively
obvious to the casual observer........





--~--~---------~--~----~------------~-------~--~----~



Getting build number/version programatically

by mark . kahrl » Sat, 28 Feb 2009 08:17:01 GMT


 I need to do it programmatically, but thanks.

                               M





--~--~---------~--~----~------------~-------~--~----~



Getting build number/version programatically

by sm1 » Sat, 07 Mar 2009 07:54:21 GMT


 Here's a hint with some code:

    StringBuffer buf = new StringBuffer();
    buf.append("VERSION.RELEASE {"+Build.VERSION.RELEASE+"}");
    buf.append("\nVERSION.INCREMENTAL {"+Build.VERSION.INCREMENTAL
+"}");
    buf.append("\nVERSION.SDK {"+Build.VERSION.SDK+"}");
    buf.append("\nBOARD {"+Build.BOARD+"}");
    buf.append("\nBRAND {"+Build.BRAND+"}");
    buf.append("\nDEVICE {"+Build.DEVICE+"}");
    buf.append("\nFINGERPRINT {"+Build.FINGERPRINT+"}");
    buf.append("\nHOST {"+Build.HOST+"}");
    buf.append("\nID {"+Build.ID+"}");
    Log.d("build",buf);

serge






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Review Nexian Journey Android NX-A890, Android Phone Termurah Di Indonesia 10 Januari 2011

http://mantugaul.wordpress.com/2011/01/10/review-nexian-journey-android-nx-a890-android-phone-termurah-di-indonesia/

lagi bokek tapi lagi pengen berobotijo, maka journey ini solusinya...
hanya Rp3.000/hari waktu sale desember 2010, lebih mahal bayar
tol/parkir/hari...sudah ada GPSnya pula...tak heran sampai antri2 waktu
sale...

syd
ptk
*coming soon, review picopad, tapi ada yang mau bantu piara journey saya?

-- 
===============
"

2. Main Angry Bird Tanpa Gadget

Hehehehe...
Bisa dimainin secara fisik juga sekarang..
Liat videonya deh
http://bit.ly/hfuctw

-- 
*...@yopiesuryadi*
www.gopego.com
http://about.me/yopie

-- 
===============
"

3. OOT: Paging Bro Nugie

4. Zoom on canvas.drawLine(), is that possible?

5. Skype di Android

6. How to Integrate cryptsetup package with android source code

7. Stylus untuk Galaxy Tab