Hi, My application is working just small mistake leads to error , In manifest file I gave permission inside another permission like below
<uses-permission android:name="android.permission.SEND_SMS"> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> </uses-permission> I closed permission for SMS after WRITE_EXTERNAL_STORAGE Thanks for your reply On Feb 16, 12:09 am, Mike C <[email protected]> wrote: > Jayanthi, > > I'm not exactly sure why you would get that error, but check these two > things: > > (1) Declare in AndroidManifest.xml that your app uses the > WRITE_EXTERNAL_STORAGE permission > (2) Check that your SD card is mounted on the device when you try to > write the file; for example, if your device is connected to your > computer via USB when you're running the app, you can't have the SD > card mounted on the device and on your computer at the same time. So > if you're able to see your SD card as an external drive on your > computer, then that means it's not mounted on the device. > > Read up > athttp://developer.android.com/guide/topics/data/data-storage.html#file... > > Also, when you ask a question on the forum, it's wise to copy and > paste the complete stack trace in your message. You can use > adb -d logcat > to see log messages while USB-debugging. > Seehttp://developer.android.com/guide/developing/tools/adb.html > > -Mike C > > On Feb 15, 4:10 am, Jayanthi <[email protected]> wrote: > > > Hi, > > I am trying to save images in sd card which is taken from camera in > > emulator, the following is the code > > to save images in sd card > > > path = String.format("/sdcard/%d.jpg", System.currentTimeMillis()); > > outStream = new > > FileOutputStream(String.format("/sdcard/%d.jpg", > > System.currentTimeMillis())); > > Log.e("TAG","b4 writing "); > > outStream.write(data); > > > Log.e("TAG","after writing "); > > outStream.close(); > > > But I get error that no file or directory . Can anyone tell me where i > > did mistake > > > Thanks , > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

