Android Question AppUpdate "copy fichier" error.

cledic

Member
Licensed User
Longtime User
Hello to all,
I receive this error:
B4X:
copy fichier
android.system.ErrnoException:open failed EROFS (Read-only file system)
using code from post: #243, plus suggested modification as from post: #290
I receive the error on App installed on: Android 5.0.1, Android 6.0 and Android 8.0.
The "Manifest" of my App is:
B4X:
'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: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
<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.
AddPermission(android.permission.ACCESS_COARSE_LOCATION)
'********* TabStrip ***********************
CreateResource(drawable, background_tab.xml,
<selector xmlns:android="http://schemas.android.com/apk/res/android"
   android:exitFadeDuration="@android:integer/config_shortAnimTime">
  <item android:state_pressed="true" android:drawable="@color/background_tab_pressed" />
  <item android:state_focused="true" android:drawable="@color/background_tab_pressed"/>
  <item android:drawable="@color/background_tab"/>
</selector>)
CreateResource(values, colors.xml,
<resources>
  <color name="background_tab_pressed">#50D3F180</color>
  <color name="background_tab">#50E4E4E4</color>
</resources>)
'******************************************
AddManifestText(<uses-permission
    android:name="android.permission.WRITE_EXTERNAL_STORAGE"
    android:maxSdkVersion="18" />
)
AddApplicationText(
  <provider
  android:name="android.support.v4.content.FileProvider"
  android:authorities="$PACKAGE$.provider"
  android:exported="false"
  android:grantUriPermissions="true">
  <meta-data
  android:name="android.support.FILE_PROVIDER_PATHS"
  android:resource="@xml/provider_paths"/>
  </provider>
)
CreateResource(xml, provider_paths,
   <external-files-path name="name" path="" />
)
AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)

Android JAR is: C:\Android\platforms\android-26\android.jar
B4A ver is: 7.8

Can someone help me where am'I wrong?
Thanks
Clemente
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

cledic

Member
Licensed User
Longtime User
Upvote 0

cledic

Member
Licensed User
Longtime User
Did you setup a new SDK? What is the path of the android.jar you defined in Tools-Configure paths?
Did you setup your app to use RuntimePermissions?
You are not providing enough informations.
Post the new FULL Error.
Hello DonManfred,
>Did you setup a new SDK? What is the path of the android.jar you defined in Tools-Configure paths?
my path to android.jar is: C:\Android\platforms\android-26\android.jar
>Did you setup your app to use RuntimePermissions
is it enough the Manifest content? If not: please where I need to see?

Thanks
 
Upvote 0
Top