PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

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
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