Android Question Manifest editor code not compiled

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Was clearing up compiler warnings and one of them was:
The recommended value for android:targetSdkVersion is 30 (manifest editor). (warning #31)
I had in the manifest editor:
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="28"/>
So changed that to 30
As expected this caused problems as I was then unable copy files from File.DirInternal to File.DirRootExternal/SubFolderX\

So, I changed the Manifest and set it back to 28 and compiled the project. Still though the same problem, unable to do the above file copy.
Only after closing B4A and reloading and recompiling the project could I again doing the file copy.

The Manifest editor has at the top:
'This code will be applied to the manifest file during compilation.
But this doesn't seem to be the case then or am I overlooking something?

RBS
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User
The manifest editor changes are always applied.

Maybe you uninstalled the app from the device at some point?
> Maybe you uninstalled the app from the device at some point?

Didn't do that, unless it somehow happened without me being involved with that.
Tried to reproduce this, but can't now, so forget about all this.

Sorted out the warning about the SDK version by using Agraham's code to set the permission:

RBS
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…