PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Reboot phone
Reboot phone
Started by Nicu, Sep., 30 2016 3:00 PM - No answer
Connect yourself…
Nicu
#1
Posted on September, 30 2016 - 3:00 PM
Hello,
I try to reboot my device, useing this code
Context thisActivity = getContexteApplication();
Intent shutdown = new Intent("android.intent.action.ACTION_REQUEST_SHUTDOWN");
shutdown.putExtra("android.intent.extra.KEY_CONFIRM", true);
shutdown.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
thisActivity.startActivity(shutdown);
The device is rooted but this code is not working does anyone knows how i can reboot an device?
or how can i run an shell comand in windev mobile ?
Runtime.getRuntime().exec(new String[]{"/system/bin/su","-c","reboot now"});
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