M
M
maaGames2017-12-17 08:17:40
API
maaGames, 2017-12-17 08:17:40

How to get the path to a folder in the phone's internal memory?

There is no problem with folders on disks and SD cards: CShellManager::BrowseForFolder allows the user to specify a path. But the internal memory of the phone is connected as a junction (if I'm not mistaken) and, although it is visible in the computer tree, in fact it all goes through the temp folder, etc., etc. And the folder browsing function does not work, the path is not returned. If you call the file selection dialog, then the path to the file in the temp folder is returned, and the selection of folders does not work at all.
Is there any way to get around the restriction and let the user select a folder in the internal memory to save there directly from the application, and not through an intermediate folder with manual copying to the phone?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
@
@nidalee, 2017-12-17
_

I doubt.
Is that ADB PUSH and ADB SYNC.
Almost every Android device I've had connects to the PC not as a storage device, but as a media player or something.
If, after connecting, the phone is displayed as a phone or something else with folders like "Internal memory" and "SD card" - this is a crutch and just your case, if I understand everything correctly. If it is displayed as a storage device, everything is fine, but the internal memory, in my opinion, is never connected like that.
TL;DR: Directly from the app - I don't think so. Try hardcore copying files via adb and folders via sync. I wonder what speed will be - suddenly even better?
Oh yes, one more thing: try to experiment corny with the rights of the application in Windows. Maybe with admin rights or vice versa, without them, a miracle will happen.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question