PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Command Line Script Shell to Android
Command Line Script Shell to Android
Started by Willy Thorpe, Dec., 23 2017 9:40 PM - No answer
Connect yourself…
Willy Thorpe
#1
Posted on December, 23 2017 - 9:40 PM
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
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text