intbt wrote: > I am trying to draw a group i fimages stored on teh sd card instead on > internal storage. I can draw the internal images with my code but get > no images whem I try to download from the card. > > I have tried 2 versions (dw[] is Drawable array) > 1/ using getIdentifier > > int dwID = getResources().getIdentifier(newGame.sdShapes > [xOFy.returnOrder(jj)], null, "org.example.lookagain"); > dw[jj] = context.getResources().getDrawable(dwID); > > the error is 'no package identifier' > > and > > 2/ createFromPath > > dw[jj] = > context.getResources().getDrawable(dwID);
Files on the SD card are not resources. Use ordinary java.io.* classes to interact with them. In particular, BitmapFactory.decodeFile() has a version that takes a File. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

