FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Execute outher apk android
Execute outher apk android
Débuté par adrianoboller, 03 oct. 2014 16:10 - 2 réponses
Connectez-vous…
adrianoboller
#1
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 03 octobre 2014 - 16:10
//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;
}
}
Signaler
0
0
adrianoboller
#2
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 03 octobre 2014 - 16:11
In form windev mobile button
ExecRun("br.com.taxi62")
Signaler
0
0
Willy Thorpe
#3
Posté le 19 décembre 2017 - 15:33
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
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