FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
Best practice for storing a file on Android
Best practice for storing a file on Android
Débuté par Jim, 08 mar. 2019 15:43 - 1 réponse
Connectez-vous…
Jim
#1
Posté le 08 mars 2019 - 15:43
I am almost finished with an app that can grab temperature data from a hardware unit of ours and store it as a .csv file.
The customer will likely need to get at it to email it to someone or themselves for long term storage.
What location would be easiest for the end user to get at?
I used this for the emulator. file_path is string = fCurrentDir
If I used this for the app, it wasn't browsable.
I used this for the app on the phone. file_path is string = /storage/emulated/0/android/data/com.mycompany.appname/files"
This was kind of hard to browse to, so I don't expect a customer to be able to get to it easily.
Should I drop it in their downloads?
What is the best practice?
Thanks
Jim
Signaler
0
0
JOHNKEN
#2
Membre enregistré
26 messages
Posté le 12 mars 2019 - 07:43
i usually make a directory in sdcard to save the files i need
use adb command to copy file from android
ExeRun("c:\adb\adb.exe pull /sdcard/inty/text/file1.txt " + """" + sDownloadPath + """",exeIconize,exeWait,sDownloadPath)
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte