I have been banging my head against the wall- can anyone help with working code for :
http://developer.android.com/resources/tutorials/views/hello-gridview.html
Every time I code it- Eclipse gives me loads of unfathomable errors(especially for a beginner) but even when I copy and paste code- it still doesn’t work with android 2.2 sdk. Any help will be welcome!
Secondly it also mentions copying some sample images into the drawable folder under res, however there are drawable-hdpi, ldpi, and mdpi folders- which one should I copy the images into ( or all 3?)
Thanks in advance
Please see my comment to your question related to the Android Tutorials. About the images you should copy them to all 3 OR create a new directory called drawable. Let me explain it with a bit more of detail.
Each device has a density like HDPI, LDPI and MDPI (tablets have even more). The idea of android is to use the images that best fit your device by going to these folders. If it can’t find an image, it will look for it on a ‘generic’ folder called drawable. So, if you’re only testing your logic and don’t care for the look by now, just create the ‘drawable’ folder and put your images there.