If I have layout-xxx folders, compilation in 1.5 would just fail.

how can I deal with that? I don't think reflection would help.

On Nov 17, 6:12 pm, Jason Proctor <[email protected]>
wrote:
> indeed, but don't use reflection, instantiate OS-dependent classes
> which implement a common interface by *name*. this breaks the class
> loading chain.
>
> reflection == last resort, IMHO
>
> At 6:01 PM -0800 11/17/09, sdphil wrote:
>
>
>
>
>
> >i think what this boils down to, is that you need to build everything
> >with2.0SDK, and then just make sure you're not using any APIs from
> >versions you don't want.  And you will want to abstract away calls you
> >don't have using reflection.  Simply doing something like "if (version
> >>=2.0) then makeSpecialCallTo20Feature();" won't work since the JVM
> >pre-verifies and will wind up barfing saying it can't find that
> >special feature anywhere (even though when it goes to execute, it
> >won't need it anyway).  somewhat annoying, and it sure would have been
> >nice if the android folks had just provided a big reflection
> >abstraction layer for all new SDK features...
>
> >On Nov 17, 1:23 pm, Kai <[email protected]> wrote:
> >>  I have the same question.
>
> >>  1.5 compiler is having problem with the new layout directories that I
> >>  need for1.6and2.0
>
> >>  how can I support 1.5,1.6and2.0at the same time?
>
> >>  On Nov 3, 9:50 pm, sdphil <[email protected]> wrote:
>
> >>  > i need my app to support1.5and above.
>
> >>  > i noticed that if I create my build.xml file using --
>
> >>  > c:\tools\android\2.0r3\tools\android update project --name MyProject --
> >>  > path C:\MyProject --target 2
>
> >>  > it complains about my resource directory names "res/drawable-hdpi, res/
> >>  > drawable-ldpi, etc...  res/layout-large, etc..." saying "invalid
> >>  > resource directory name".
>
> >>  > If I use1.6r1 tool set
> >>  > c:\tools\android\1.6r1\tools\android update project --name MyProject --
> >>  > path C:\MyProject --target 2
>
> >>  > Everything works fine.
>
> >>  > If I use target 3 (1.6and above)
> >>  > c:\tools\android\2.0r3\tools\android update project --name MyProject --
> >>  > path C:\MyProject --target 3
>
> >>  > Everything works fine.
>
> >>  > So, do I basically *have* to use1.6r1 to build for1.5?  And does
> >>  > that mean that those special directory names will only work on1.6and
> >>  > above?
>
> >>  > tia.
>
> >--
> >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
>
> --
> jason.vp.engineering.particle

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