PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → [WM22] can't find App folder on Android device
[WM22] can't find App folder on Android device
Débuté par VEGEboss, 09 mar. 2018 19:33 - 4 réponses
Membre enregistré
88 messages
Popularité : +2 (2 votes)
Posté le 09 mars 2018 - 19:33
hello to everybody

as in the subject, i'm developing an App with Windev Mobile but when I deploy it to the android device (an Asus ZenPad 3s) I can't reach, with the file manager, the folder where the App is installed

I know (using the fExeDir() function) that it's in /data/user/0/com.myname.myapp but how can I reach this folder?

I need this information because the App captures photo and saves them to a folder ( fExeDir() + "/Album" ) and I need to edit the pictures, delete, rename and so on

maybe is possible to install the App in a different folder?

thanks folks and sorry for bad english!
Posté le 10 mars 2018 - 14:13
Hi

not possible. The app is always installed in a hidden folder, protected
by the Android OS by design, to avoid any tempering, either to the app
itself or to the data that it stores there.

YOu can reach this folder only on a rooted phone, and clearly, that is
not the majority of phones out there (and it opens a lot of security
issues)...

What you CAN do is, in your app, capture pictures and save them on the
sdcard, where other apps and yourself will be able to access them.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 3/9/2018 à 1:33 PM, VEGEboss a écrit :
hello to everybody

as in the subject, i'm developing an App with Windev Mobile but when I
deploy it to the android device (an Asus ZenPad 3s) I can't reach, with
the file manager, the folder where the App is installed

I know (using the fExeDir() function) that it's in
/data/user/0/com.myname.myapp  but how can I reach this folder?

I need this information because the App captures photo and saves them to
a folder ( fExeDir() + "/Album" ) and I need to edit the pictures,
delete, rename and so on

maybe is possible to install the App in a different folder?

thanks folks and sorry for bad english!
Posté le 10 mars 2018 - 16:33
hello there my fellow developer

well because of Android security you can't acces to that file the only way possible to do that it's only if you root your device, if that app needs to be on google play store obviosly you can't do that so the only way to acces on those files of pictures or photos and so on you need to be able to acces a file so then. it's like on PC the only fast way to acces on something its on "C:/"

well lucky you theres a function that allows you to get at that file on android its

// Find out the list of storage cards installed on the current Mobile device
ListAdd(LIST_StorageCard, SysDirStorageCard())


well you need to create a file for your app.

one example it's like whatsapp they put files on the "C:/" of android to acces file like Voice notes or Images they called it Whatsapp Voice Notes or Whatsapp Pictures,

heres its the example on PCSoft
https://help.windev.com/en-US/…


hope these help you.


PD: if you create a file that his content its pictures the inside app galery of android shows up your file with all of your pictures.
Example: the galery app of samsung galaxy shows up whatsapp image, FaceBook Pictures, Downloads hope you get the idea.
Membre enregistré
88 messages
Popularité : +2 (2 votes)
Posté le 10 mars 2018 - 18:35
thanks to all, now I solved

maybe one day I'll post some screenshots
Posté le 13 mars 2018 - 23:15
VEGEboss wrote:
thanks to all, now I solved

maybe one day I'll post some screenshots


Lo resolviste, como comparte!