This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Android and the fly likes creating jpeg file in internal storage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "creating jpeg file in internal storage" Watch "creating jpeg file in internal storage" New topic
Author

creating jpeg file in internal storage

Astha Sharma
Ranch Hand

Joined: Oct 15, 2011
Posts: 245

Hello,
I am writing a code for an android app in which I have to captures image and save it into internal storage of android. For this I have written the following code-

This code creates jpeg file but don't write the image into it.
Later I tried writing following code in onActivityResult-


Astha - OCPJP 6 (90%)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
You can't create File objects on Android: http://developer.android.com/guide/topics/data/data-storage.html

Edit: Why did you post this question twice? Please don't do that; I've deleted the other copy.


Ping & DNS - my free Android networking tools app
 
Don't get me started about those stupid light bulbs.
 
subject: creating jpeg file in internal storage
 
Similar Threads
getblob from db, then convert to byte and write to bitmap/jpeg
Get byte[] of image
OutOfMemoryError... Whats the solution?
listview not clickable
Encoding/decoding problem