Thanks it was useful. As I can see the File returned from getFilesDir() is the next: /data/data/android.files/files (yes, it is a directory) the next code saves a png:
try { fos = super.openFileOutput("output.png",MODE_WORLD_READABLE); bitmap.compress(CompressFormat.PNG, 75, fos); } catch (FileNotFoundException e) { Log.w("Error while saving",e); } The next code retrieve the png from the saved file: BitmapDrawable bitmapdrawableRec=null; try { bitmapdrawableRec = new BitmapDrawable(openFileInput("output.png")); } catch (FileNotFoundException e) { Log.w("error while retrieving",e); } hope to be useful for somebody. On 07/12/2010, Mark Murphy <mmur...@commonsware.com> wrote: > On Tue, Dec 7, 2010 at 6:26 PM, gato chlr <dany...@gmail.com> wrote: >> does anybody know how to copy files to the internal storage? > > Use Java file I/O. Use getFilesDir() (called on Activity, Service, or > other Context) to find the application's spot in the internal storage. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, One Low Price! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en