We resolved the issue, my project is dependent on another project and
after keeping the WRITE_EXTERNAL_STORAGE permission in both the
projects manifest files solved the issue.

Thank you all for helping.
Android user.

On Oct 15, 12:13 pm, androiduser mobile <[email protected]>
wrote:
> Hi Mark,
>
> we did try these but no luck. We tried with same SD card what I am
> using. No formatting issue.
>
> Thanks,
> Android user
>
> On Oct 15, 10:49 am, Mark Murphy <[email protected]> wrote:
>
>
>
> >androiduser mobilewrote:
> > >         File directory = new File
> > > (Environment.getExternalStorageDirectory().getPath()+"/downloads");
>
> > Creating paths via concatenation is bad form and prone to error (e.g.,
> > duplicate slashes). Use:
>
> > new File(Environment.getExternalStorageDirectory(), "downloads");
>
> > >         File file = new File(directory.getPath()+"/"+filename);
>
> > See above.
>
> > >         if (!file.exists() && directory.exists()){
> > >            try {
> > >                file.createNewFile();
> > >            } catch (IOException e) {
> > >                    Log.d(TAG,"File creation failed for " + file);
> > >            }
> > >         }
>
> > Is the SD card on the target device formatted FAT32, or something else?
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 1.0 In Print!- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to