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

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

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 »

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: 48077
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) »

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
https://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 »

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