Max
Max

Reputation: 5942

file not found exception

Hi I am using this code for my android app so that it can capture a image and then use that image for further process, but i get a file not found exception, Can any one help on this source code can be found in the below link.

Thanks Deepesh

Exception for camera :-/sdcard/1312203454810.jpg (Permission denied)
W/System.err( 4931): java.io.FileNotFoundException: /sdcard/1312203454810.jpg (Permission denied)

http://www.brighthub.com/mobile/google-android/articles/43414.aspx

Upvotes: 2

Views: 1318

Answers (2)

Ovidiu Latcu
Ovidiu Latcu

Reputation: 72341

Permission denied. You can't access the SDCard. You need to modify your AndroidManifest.xml and add

   <uses-permission
    android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>

Upvotes: 2

Sherif elKhatib
Sherif elKhatib

Reputation: 45942

Add this to manifest:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 

Upvotes: 3

Related Questions