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
On Feb 27, 7:16 pm, [email protected] wrote:
> I need to do it programmatically, but thanks.
>
> M
>
> On Feb 27, 3:49 pm, sm1 <[email protected]> wrote:
>
> > 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
>
> > On Feb 27, 4:21 pm, Mark Murphy <[email protected]> wrote:
>
> > > Mark K wrote:
> > > > Does anyone know of a way to get the version/build number
> > > > programatically?
>
> > > 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!-
> > > Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---