I have this already in my Manifest:

...
                <uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                <uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"/>
        </application>
        <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>
</manifest>

On Jul 8, 1:34 pm, Mark Murphy <[email protected]> wrote:
> The WRITE_EXTERNAL_STORAGE permission was added in API Level 4. By
> saying you are targeting that API level, you will need to add that
> permission to your manifest.
>
>
>
>
>
> On Thu, Jul 8, 2010 at 7:28 AM, powder <[email protected]> wrote:
> > I have a piece of code that copies a file to the sdcard, it always
> > worked. But changing the following
> > line in the Manifest from:
>
> > <uses-sdk android:minSdkVersion="3"/>
>
> > to
>
> > <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>
>
> > Gives me a error (have not changed anything else). Anyone have an
> > explanation?
>
> > 07-08 13:13:38.121: ERROR/myApp(266): /mnt/sdcard/myapp/customer.db
> > (Permission denied)
> > 07-08 13:13:38.121: ERROR/myApp(266): java.io.FileNotFoundException: /
> > mnt/sdcard/myappt/customer.db (Permission denied)
> > 07-08 13:13:38.121: ERROR/myApp(266):     at
> > org.apache.harmony.luni.platform.OSFileSystem.openImpl(Native Method)
> > 07-08 13:13:38.121: ERROR/myApp(266):     at
> > org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:
> > 152)
>
> > Regards Jonas.
>
> > --
> > 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
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