aspose 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: 249

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: 42294
    
  64
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