On Tue, Feb 2, 2010 at 3:52 PM, Kitzy <[email protected]> wrote: > Also, it is best to program to the lowest sdk version possible. All > sdks. Are backwards compatable (somethiing made for 1.5 will work on > 2.1. However something made for 2.1 won't work on 1.5) although you > can/should test in your 2.1 emulator. >
That's not entirely true. You can develop apps in the 2.1 SDK that work on Android 1.5. You just need to adjust the minSdkVersion in your AndroidManifest.xml as detailed here: http://developer.android.com/intl/fr/guide/publishing/versioning.html#minsdkversion The thing that matters is that you test your product on Android 1.5 (either on a physical device, or using the 1.5 emulator) before shipping it. There is functionality available in the latest SDK that simply won't work correctly on earlier versions of Android, and you need to iron these out before the app will work correctly on the earlier versions. Regarding the original question: creating a "drawable/" directory is not a kludge, you can delete the "drawable-hdpi/" etc directories and stick with just "drawable/" if you want. However, doing this should not be required. You are able to put all your images in "drawable-hdpi/" and they should all be seen by Eclipse. The fact that this was not happening for you suggests that you dropped the images DIRECTLY into the directory, and Eclipse simply did not find them for some reason. You should try right-clicking on the project in the Eclipse package explorer tree, and selecting "Refresh". If that doesn't get rid of your error message, then try the "Project" -> "Clean..." option in the menu bar to re-build your entire project - occasionally, the new files are found, but your R.java is not updated for some reason. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

