• Post Reply Bookmark Topic Watch Topic
  • New Topic

How Save image on sd card ?

 
Farshad Zeinali
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi dears

How I can save an image on sd card ?
thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See http://developer.android.com/guide/topics/data/data-storage.html#filesExternal for how to store files on the SD card.

If you have the image as a Bitmap, you can write it to an OutputStream via the Bitmap's compress method.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!