PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
WX - Como saber a lista de app/apk android estão instaladados no celular com Windev Mobile?
WX - Como saber a lista de app/apk android estão instaladados no celular com Windev Mobile?
Started by BOLLER, Aug., 12 2017 8:08 AM - 1 reply
Connect yourself…
BOLLER
#1
Registered member
3,651 messages
Popularité : +175 (223 votes)
Posted on August, 12 2017 - 8:08 AM
import android.content.pm.*;
import android.content.Context;
import java.util.List;
PUBLIC static string getInstalledPackage()
{
string ListInstalledPackage = "";
Context myContext = getContexteApplication();
PackageManager pm = myContext.getPackageManager();
List
packages = pm.getInstalledApplications(PackageManager.GET_META_DATA);
for (ApplicationInfo packageInfo : packages) {
ListInstalledPackage = ListInstalledPackage + pm.getApplicationLabel(packageInfo) + "(" + packageInfo.packageName + ")\r\n";
}
RETURN ListInstalledPackage;
}
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
BOLLER
#2
Registered member
3,651 messages
Popularité : +175 (223 votes)
Posted on August, 12 2017 - 8:10 AM
Para executar uma aplicação android:
Procedure Global LanceAppli1
import android.app.Activity;
import android.content.*;
public static boolean LanceAppli1()
{
Activity act = getActiviteEnCours();
try {
act.startActivity(act.getPackageManager().getLaunchIntentForPackage("com.test.appli1"));
} catch (Exception e) {
return false;
}
return true;
}
WinDev Mobile WL:
SI
(
PAS LanceAppli1
(
)
)
ALORS
Info
(
"L'app n'est pas installée"
)
FIN
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
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