i think what this boils down to, is that you need to build everything with 2.0 SDK, 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 for 1.6 and 2.0 > > how can I support 1.5, 1.6 and 2.0 at 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 use 1.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.6 and 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 use 1.6r1 to build for1.5? And does > > that mean that those special directory names will only work on 1.6 and > > 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

