Android Question Permissions in sdk 29

jcmartini

Member
Licensed User
Longtime User
Hello,
Could somebody give us some guidelines for the permissions in Sdk version 29 (Android 10). It seems that they have all changed !...
 
It seems not: I am using the example of FTP server you gave us. When I put targetSdkVersion="29" in the project manifest file. It does not work. In the FTP client (under W10 and Winscp) I received the following messages:
1) Connection to 192.168...
2) Connected
3) session starting
4) List of the remote directory

Then the error msg: List of the remote folder is not possible.

When I put targetSdkVersion="28" in the project manifest it works fine. Any idea ?
 
Upvote 0
You are right it's not a problem of permission. The msg is not very clear and it's happend only with sdk 29.
 

Attachments

  • log.png
    log.png
    10.9 KB · Views: 564
Upvote 0
These remarks do not solve my problem....
You are making it very difficult to help you.

You are not providing enough information,
not providing a small example which shows the problem.
You are not providing any full stacktrace.
You are even not proving any related code.
How could we help?
 
Upvote 0
Could it be:
B4X: Copy
Dim mylist as List
mylist.Initialize '<----- Maybe the "hint" LIST must be initialized in the log means this?
 
Upvote 0
tips:


 
Upvote 0
Hello, I'm back from vacation...
I give you the Erel's example. The only change I did, is adding permission of "PERMISSION_WRITE_EXTERNAL_STORAGE" in main module. As I told you: it works fine with sdk28 and Android 10 but not with sdk29 and Android 10. Any idea ?
 

Attachments

Upvote 0
Any idea ?
1. You did not implemented the permissions correctly.
2. As your are using File.DirRootExternal you NEED to use Runtimepermissions when using TargetSDK 23+ which you are not.
 

Attachments

Last edited:
Upvote 0
Hello,
Could somebody give us some guidelines for the permissions in Sdk version 29 (Android 10). It seems that they have all changed !...
1. You did not implemented the permissions correctly.
2. As your are using File.DirRootExternal you NEED to use Runtimepermissions when using TargetSDK 23+ which you are not.

Just to comment on something missing from DonManfred correction

targetSdkVersion in manifest:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="29"/>

Route configuration:

Android.jar

C:\Android\platforms\android-29\android.jar

Optional:
I recommend doing


Jetifier
Clear Proyect

and use Java11 in Route configuration

Javac.exe:
C:\Java\java-11.0.1\bin\javac.exe

Regards,
 
Upvote 0
i had problems too with targeting sdk29. its so hard to work with google they make so many changes each time they update their SDK and we need to update all apps. with ios, i have fewer issues. why is google making our life so hard?! :mad:
 
Upvote 0
When target SDK 30, DirRootExternal will be blocked, Google changed very much , make developer very hard!
 
Upvote 0
Back
Top