Seems like this just gets the version that you compiled the app on. I
think the OP is looking for a runtime version for an app that can run
on multiple versions.

  Doug Gordon

On Oct 20, 7:34 pm, Mark Murphy <[email protected]> wrote:
> On Wed, Oct 20, 2010 at 7:32 PM, cindy <[email protected]> wrote:
> > Ho could I get Android version of a running device using java code?
>
> Use android.os.Build.VERSION:
>
> http://developer.android.com/reference/android/os/Build.VERSION.html
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
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

Reply via email to