Fyi, the correct number to check is Build.VERSION.SDK.  This is incremented
for each update of the platform APIs.

On Fri, Apr 3, 2009 at 4:51 AM, Al Sutton <[email protected]> wrote:

>
> D'oh.....
>
> Build.VERSION doesn't resolve, but Build.VERSION.RELEASE does.
>
> Thanks for the pointer.
>
> Al.
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Stoyan Damov
> Sent: 03 April 2009 12:31
> To: [email protected]
> Subject: [android-developers] Re: Determining the firmware version
>
>
> My code uses Build.VERSION.RELEASE, Build.VERSION.INCREMENTAL and
> Build.VERSION.SDK and compiles just fine w/ the 1.1. SDK
>
> Are you compiling with a cupcake SDK or something?
>
> Cheers
>
> On Fri, Apr 3, 2009 at 2:15 PM, Al Sutton <[email protected]> wrote:
> >
> > Try using it in eclipse. Using the 1.1 SDK I get the following error;
> >
> > android.os.Build.VERSION cannot be resolved
> >
> > Al.
> >
> >
> > ---
> >
> > * Written an Android App? - List it at http://andappstore.com/ *
> >
> > ======
> > Funky Android Limited is registered in England & Wales with the
> > company number  6741909. The registered head office is Kemp House,
> > 152-160 City Road, London,  EC1V 2NX, UK.
> >
> > The views expressed in this email are those of the author and not
> > necessarily those of Funky Android Limited, it's associates, or it's
> > subsidiaries.
> >
> >
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of Stoyan Damov
> > Sent: 03 April 2009 11:59
> > To: [email protected]
> > Subject: [android-developers] Re: Determining the firmware version
> >
> >
> > What??? android.os.Build is not part of the public API???
> > Why can I see it here then?
> >
> > http://developer.android.com/reference/android/os/Build.VERSION.html
> >
> > On Fri, Apr 3, 2009 at 1:20 PM, Al Sutton <[email protected]> wrote:
> >>
> >> Is there any way to determine the version of Android that an app is
> >> running on?
> >>
> >> The reason being my latest idea was to turn off my on-screen keypad
> >> when running on cupcake. The problem is the firmware version shown on
> >> the about screen comes from android.os.Build.VERSION which appears to
> >> be a private API.
> >>
> >> Does anyone know anywhere else it can be obtained from in an approved
> >> manner?
> >>
> >> Al.
> >>
> >> ---
> >>
> >> * Written an Android App? - List it at http://andappstore.com/ *
> >>
> >> ======
> >> Funky Android Limited is registered in England & Wales with the
> >> company number  6741909. The registered head office is Kemp House,
> >> 152-160 City Road, London,  EC1V 2NX, UK.
> >>
> >> The views expressed in this email are those of the author and not
> >> necessarily those of Funky Android Limited, it's associates, or it's
> >> subsidiaries.
> >>
> >>
> >>
> >> >
> >>
> >
> >
> >
> >
> > >
> >
>
>
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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