PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Execute outher apk android
Execute outher apk android
Started by adrianoboller, Oct., 03 2014 4:10 PM - 2 replies
Connect yourself…
adrianoboller
#1
Registered member
3,660 messages
Popularité : +175 (223 votes)
Posted on October, 03 2014 - 4:10 PM
//ExecRun - Funcional - Perfeito
import android.app.Activity;
import android.content.Intent;
import java.lang.*;
import android.util.*;
import java.lang.Exception;
import android.util.Log;
public static boolean ExecRun(String Aplicativo){
try {
if (Aplicativo == null){
return false;
}
else{
Intent Apk = getActiviteEnCours().getPackageManager().getLaunchIntentForPackage(Aplicativo);
getActiviteEnCours().startActivity(Apk);
return true;
}
}
catch(Exception e) {
Log.e("WM",e.toString());
return false;
}
}
Report
0
0
adrianoboller
#2
Registered member
3,660 messages
Popularité : +175 (223 votes)
Posted on October, 03 2014 - 4:11 PM
In form windev mobile button
ExecRun("br.com.taxi62")
Report
0
0
Willy Thorpe
#3
Posted on December, 19 2017 - 3:33 PM
Good Night, Boller.
I saw, about many many resolutions explained for you to start the Others Apps its like Calc for example and others Apps, using the one main App build for us.
However, you not explain how stop one this Apps (outside main app), because the App have one function to active others apps, but how i will stop this same opened Apps? For example: Its possivel start the Calc App or Google Maps App across the command line below:
bStarted is boolean
// Starts the application
bStarted = ExeRun("com.google.android.apps.maps")
But my main doubt is: Its possible create onde button inside in the parent application that to close this same application that my app its open in lost? Please, tell me about one solution that i can use for this.
Thank you, and congratulations for all the help us and for your especial informations.
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