First time doing HelloAndroid, I could not get the Emulator to run newly build Apps from within Eclipse when emulator is already up and running and I had to relaunch the Emulator every time. I tried different things but to no avail. Please help.
I am running Android SDK 1.5 r3, latest DDMS and Eclipse Galileo in Windows Vista. Any ideas will be greatly appreciated. THANKS. On Thu, Aug 27, 2009 at 7:31 PM, Israel Ferrer <[email protected]> wrote: > The images goes into the apk. > > You have to put the images in the drawable folder from resource and if you > want to use it: > > Drawable image= getResources().getDrawable(R.drawable.<id>); > or > Bitmap b = BitmapFactory.decodeResource(getResources(),R.drawable.<id>); > > El 27/08/2009, a las 23:02, Justin Anderson escribió: > > I may be wrong but I don't think you need the full path of where they are > on the device... You should be able to reference them using the R class. > > On Thu, Aug 27, 2009 at 6:11 AM, Latha Shivanna <[email protected]>wrote: > >> >> Hii All, >> >> In my application, I have some image files under "res\drawable" folder. >> >> My problems are in getting their full pathname. >> >> Can anybody please answer my following queries? >> >> 1. Do these files go as a part of apk? >> 2. If so where do they actually stay on device? Is it >> "/data/data/(package)/files" ? >> 3. If I have a function which needs the full path of these image >> files, how should I mention it ? >> 4. Or do i need to keep my image files under "asset"? If so, what is >> the full path of these images on the device? >> >> Please do suggest. Would appreciate your help! >> >> Thanks >> Latha >> >> >> > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

