My own app that let TC show a folder don't run anymore with Api28

Support for Android version of Total Commander

Moderators: sheep, Hacker, Stefan2, white

Post Reply
HerveA
Junior Member
Junior Member
Posts: 2
Joined: 2019-11-10, 10:36 UTC

My own app that let TC show a folder don't run anymore with Api28

Post by *HerveA » 2019-11-11, 10:51 UTC

Hello,
I wrote an appli that use TotalCommander to show a specific folder.
I do this by :
Intent i = a0.getPackageManager().getLaunchIntentForPackage("com.ghisler.android.TotalCommander");
i.setData(Uri.parse("file:"+aFolder+"/"));
a0.startActivity(i);
On my old phone with Api21, this run perfertly.
But, on a new phone with Api28, this dont run anymore.
Have you any solution ?
Thanks

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38395
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: My own app that let TC show a folder don't run anymore with Api28

Post by *ghisler(Author) » 2019-11-11, 11:44 UTC

Android API 28 doesn't allow to use file: URLs. But don't worry, just replace the file: prefix by content: and TC will accept it.
Author of Total Commander
http://www.ghisler.com

HerveA
Junior Member
Junior Member
Posts: 2
Joined: 2019-11-10, 10:36 UTC

Re: My own app that let TC show a folder don't run anymore with Api28

Post by *HerveA » 2019-11-11, 13:07 UTC

Wonderful,
I tried a lot of things, I did not think about this simple solution
thank you very much.

Post Reply