File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 39549
    
  27
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 - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating jpeg file in internal storage
 
Similar Threads
OutOfMemoryError... Whats the solution?
Encoding/decoding problem
listview not clickable
getblob from db, then convert to byte and write to bitmap/jpeg
Get byte[] of image