Problems when using an SD Card!

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
swallis7
Junior Member
Junior Member
Posts: 4
Joined: 2019-12-17, 20:01 UTC

Problems when using an SD Card!

Post by *swallis7 »

I'm using TC 2.91
I have two "Alcatel OneTouch Pop Icon LTE 2 A846L" smart phones.
One has NO SD Card plugged in, the other has a 32gb SD Card in it.


When you start TC on the phone with NO SD Card, the first entry says
"Internal storage"
"791.3M / 4.6G", "/storage/sdcard0"


When you start TC on the phone with an SD Card, the first entry says
"SD Card"
"9.4G / 29.7 G", "/storage/sdcard0"

the second entry says
"SD-card"
"791.3M / 4.6G", "/storage/sdcard1"


This looks like 3 problems to me (on the phone with an SD Card in it):
1. The one should be named "Internal storage",
2. The two entries are in reverse logical order; "Internal storage" should be before the "SD Card",
3. The device names "/storage/sdcardX" are switched around.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Problems when using an SD Card!

Post by *ghisler(Author) »

The device names are determined by Android, not Total Commander. TC asks Android for the name to be displayed.
Author of Total Commander
https://www.ghisler.com
swallis7
Junior Member
Junior Member
Posts: 4
Joined: 2019-12-17, 20:01 UTC

Re: Problems when using an SD Card!

Post by *swallis7 »

Does that apply to the device order too?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Problems when using an SD Card!

Post by *ghisler(Author) »

TC puts /storage/emulated/0 first, and the other devices should be listed in alphabetic order, so
/storage/sdcard0
/storage/sdcard1
It's really strange that your internal memory isn't named /storage/emulated/0 and doesn't have the lowest number.
Author of Total Commander
https://www.ghisler.com
swallis7
Junior Member
Junior Member
Posts: 4
Joined: 2019-12-17, 20:01 UTC

Re: Problems when using an SD Card!

Post by *swallis7 »

What's even stranger is, when I plug it in a USB port on my Windows 10 PC, Total Commander 9.22a shows a folder named
"ALCATEL ONETOUCH A846L"

Then there are two folders inside of that named
"Internal storage"
"SD Card"

Is it possible that TC Android is not getting the device names from exactly the right place;
would it be better for TC to get the device names right from the directories instead?

Thank you for your time.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Problems when using an SD Card!

Post by *ghisler(Author) »

No, TC does ask Android for the device name. It does work on the first device you tried (without SD-Card). Unfortunately in my tests not all devices return a device name in the called function, so TC shows a generic "SD Card" instead.
Author of Total Commander
https://www.ghisler.com
Post Reply