Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating jpeg file in internal storage

 
Astha Sharma
Ranch Hand
Posts: 250
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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-
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic