Before Honeycomb 3.2, apps only had to request for the permission WRITE_EXTERNAL_STORAGE and they would have write access to both the internal and external so-called "sdcard" sets of memory. Now, apps have to request for WRITE_MEDIA_STORAGE if they want to write to the external SD card, but many of them have not yet been updated to do so yet. This affects file managers / explorer / compression utility type apps most often because users would tend to use them to copy / move / zip files within the file system.
AddPermission(android.permission.WRITE_MEDIA_STORAGE)
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
' Test for Samsung Tablet with write error on SDCARD
AddPermission(android.permission.WRITE_MEDIA_STORAGE)
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: Manifest Editor
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission(android.permission.WRITE_MEDIA_STORAGE)
AddManifestText(<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>)
'End of default text.
Hubert,
i add this in the default section. If i look at the AndroidManifest.xml
the AddPermission command is at the right place.
But here the
AddManifestText(<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>)
is inserted before the AddPermission command. I think this must behind the
AddPermission and i don't know if the syntax is correct.
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
' Test for Samsung Tablet with write error on SDCARD
AddPermission(android.permission.WRITE_MEDIA_STORAGE)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddManifestText(<!-- Allows an application to write to internal media storage @hide -->
<permission android:name="android.permission.WRITE_MEDIA_STORAGE"
androidermissionGroup="android.permission-group.STORAGE"
android:label="@string/permlab_mediaStorageWrite"
android:description="@string/permdesc_mediaStorageWrite"
androidrotectionLevel="signatureOrSystem" />
)
Packaging files. Error
AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'label' with value '@string/permlab_mediaStorageWrite').
AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'description' with value '@string/permdesc_mediaStorageWrite').
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
' Test for Samsung Tablet with write error on SDCARD
'AddPermission(android.permission.WRITE_MEDIA_STORAGE)
'AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddManifestText(<!-- Allows an application to write to internal media storage @hide -->
<permission android:name="android.permission.WRITE_MEDIA_STORAGE"
androidermissionGroup="android.permission-group.STORAGE"
android:label="@string/permlab_mediaStorageWrite"
android:description="@string/permdesc_mediaStorageWrite"
androidrotectionLevel="signatureOrSystem" />
)
androidermissionGroup="android.permission-group.STORAGE"
Compiling code. 0.88
Compiling layouts code. 0.05
Generating R file. 0.00
Compiling generated Java code. 2.42
Convert byte code - optimized dex. 1.97
Packaging files. Error
AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'label' with value '@string/permlab_mediaStorageWrite').
AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'description' with value '@string/permdesc_mediaStorageWrite').
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
' Test for Samsung Tablet with write error on SDCARD
'AddPermission(android.permission.WRITE_MEDIA_STORAGE)
'AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddManifestText(<!-- Allows an application to write to internal media storage @hide -->
<permission android:name="android.permission.WRITE_MEDIA_STORAGE"
android:permissionGroup="android.permission-group.STORAGE"
android:label="@string/permlab_mediaStorageWrite"
android:description="@string/permdesc_mediaStorageWrite"
androidrotectionLevel="signatureOrSystem" />
)
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?