Android Question File.DirRootExternal and ListFiles not working

Status
Not open for further replies.

Scantech

Well-Known Member
Licensed User
Longtime User
TargetSDKVersion 29 and Android-29 does not work with l1.AddAll(File.ListFiles(File.DirRootExternal))

We can't populate list in File.DirRootExternal. Is there anyway to populate the list from File.DirRootExternal? Thanks
 
Hi, in your previous post I indicated a workaround for API 29 and DirRootExternal.

Please read it.
 
Upvote 0
Hi, in your previous post I indicated a workaround for API 29 and DirRootExternal.

Please read it.
I did do the workaround. Still no progress. It says list not initialized. I do not have the complete error message right now. I substitute file.dirrootexternal for file.internal and works without a problem. The list is initialized.
 
Upvote 0
Oh, now I gotcha.

Maybe this might help:

 
Upvote 0
Status
Not open for further replies.
Back
Top