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. how to do a HttpDelete properly

I can do HttpGet and HttpPost just fine but HttpDelete is being
considered as a regular get by my rails app.  Does anyone have a
working example of delete (destroy) of a resource?
--~--~---------~--~----~------------~-------~--~----~

2. : Hands on Technical Training on Linux Device Drive

Hello All,

Kernel Programming is the key to the digital city of device drivers:
If you know the language for drivers you can get a device to do almost
anything you want. Learn how to write device drivers with the help of
industry experts.
        This module emphesizes on approach of identifying and resolving the
critical issues in a project in a lmited time frame.

Course Highlights:

Linux Kernel Programming (Linux Device Driver)

-Intel x86 Fundamentals
-Linux Kernel source tree
-Character, Block device drivers
-Memory Management
-System Call hooking
-Kernel Threading and synchronization
-Virtual File System driver

Detail syllabus is available at

http://www.conceptssys.com/SyllabusPdf/LDD.pdf

Labs -
Carefully designed labs and exercises which will help participants to
apply knowledge gained through lectures immediately in their
assignments.

Starting Date        :  February 7, 2009.
Duration                :  1.5 months for each module.
Days & Timings   :  Saturday and Sunday, 3 Hours Per day.

Venue:
Concepts Systems,
602-603, The Pentagon, Shahu College Road,
Next to Pune-Satara Road,
Near Panchami Hotel, Parvati. Pune - 411009.

Registration: We encourage you to register at the earliest since there
are limited seats.

If you have any queries feel free to call us on 020-24216888 /
9960638738 Or mail us at train...@conceptssys.com.

About Us:
Concepts Systems is a Pune based Software Training Company having
expertise in Core Systems. Many leading software companies like EMC,
HP, Nvidia, Oracle India, KPIT Cummins are already part of Concepts
Software Training Division clientele. Systems Technology Experts
having Industry exposure form the backbone of Concepts Training
Division.

Thanks & Regards,
Team
Concepts Systems
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. How could I run a Uri based Intent in a Tab Page?

4. autoLink text from app widget

5. How do you display many points on a map?

6. How to get past "waiting for for device /dev/block/sdb2" on eee PC 1000HE?

7. ubuntu brainstorm