Android Question How to read media names correctly in phone?

T201016

Active Member
Licensed User
Longtime User
Hello everyone!
I am wondering on a method how can I read the names
device memory (i.e. GS185) and external USB flash drive (i.e. PLATINET-8),
which are shown in the example picture:

20220404_140053.png


I need these names for later use in my code to distinguish the File List
from the selected source which is USB (PLATINET-8) or Phone Resource.
Thanks for any suggestions.
 

T201016

Active Member
Licensed User
Longtime User
Cool! Thanks @DonManfred ,,, now I would only be left with the USB issue.
but there probably is a way to do it:

USB::
Dim USB As UsbDevice
    Usb = UsbDevices(...)      
    Dim jo As JavaObject = Usb
    Log( jo.RunMethod("getProductName",Null))
    Log (Usb.DeviceName)
 
Last edited:
Upvote 0
Top