Because the openFileOutput opens a file on your phone memory, not on your sd-card.
Use Environment.getExternalStorage() to get to the root of your sd- card instead. (i may have mis-types the method above, but you get the idea :-)). On Mar 5, 10:01 pm, Ozymandias <jor...@gmail.com> wrote: > I can't figure out how to do this. Looking around online got me this: > > try { > FileOutputStream fos = > myActivity.openFileOutput("test.png", > Activity.MODE_PRIVATE); > bitmap.compress(CompressFormat.PNG, 100, fos); > fos.flush(); > fos.close(); > } catch (Exception e) { > e.printStackTrace(); > } > > I get no errors, but I also get nothing written to my SD card. Any > ideas? -- 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