Is that an integer constant? If so, it could just be defined in the library
code for building with earlier SDK versions.

Since integer constants are embedded, not referenced, the value used by the
framework won't
ever change, so it's safe.
--
Kostya Vasilyev
21.10.2011 16:25 пользователь "Mark Murphy" <[email protected]>
написал:

> On Thu, Oct 20, 2011 at 10:01 PM, Zsolt Vasvari <[email protected]>
> wrote:
> > I downloaded the Version 4 CL, and trying to compile the Sample
> > project (V4), but running into all kinds of compile issues, such as
> > MenuItem.SHOW_AS_ACTION_IF_ROOM not defined until Level 11.
> >
> > - I create a New Project from Existing Sources (SDK/extras/android/
> > support/v4/samples/Support4Demos)
> > - Added the android-support-v4.jar
> > - Set the project's build target to API Level 4 (I also tried 10, same
> > result as expected).
> >
> > There are other compile issues as well, but I know this used to work
> > before the last CL update.
> >
> > Obviously, I could compile it if I set the build target to 11, but I
> > still couldn't run it pre-HC.
>
> Well, at least in terms of SHOW_AS_ACTION_IF_ROOM, that is only used
> by MenuCompat, and so it will work on pre-HC.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 Available!
>
> --
> 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

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