FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Command Line Script Shell to Android
Command Line Script Shell to Android
Débuté par Willy Thorpe, 23 déc. 2017 21:40 - Aucune réponse
Connectez-vous…
Willy Thorpe
#1
Posté le 23 décembre 2017 - 21:40
Hello people, have a nice day for all.
Please, its possible to use Command Line Script Shell to Android inside the Application Mobile Windev?
There are this function inside the Windev Mobile, how can i do this?
For example, i need run this code below to one especific action: am force-stop com.calc
Somebody know how i will do this procedure? Call the Shell.SU.run("am force-stop com.calc")?
Shell.SU.run("am force-stop com.calc");
db = SQLiteDatabase.openOrCreateDatabase(new File("/data/data/com.calc/databases/msgstore.db"), null);
for (WContact contact : contacts) {
try {
sendMessage(contact, message);
} catch (IOException e) {
e.printStackTrace();
}
}
db.close();
PackageManager pm = context.getPackageManager();
Intent intent = pm.getLaunchIntentForPackage("com.calc");
context.startActivity(intent);
return true;
}
Thank you and i am waiting for one help!
Willy
Signaler
0
0
→ Revenir à WINDEV Mobile 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