Mokujil Posted May 5, 2010 Share Posted May 5, 2010 Bonjour, Je suis développeur Java et je me suis lancé aujourd'hui dans le développement d'une appli android (sinon je ne serais pas ici :P ). Et je rencontre un petit soucis, je cherche à afficher toutes les applications installées. J'ai cherché dans la doc, mais je ne trouve pas la méthode. Si quelqu'un pouvais m'éclairer, ça serait vraiment cool. Merci d'avance, Link to comment Share on other sites More sharing options...
arnouf Posted May 5, 2010 Share Posted May 5, 2010 Bout de code : Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); List list = getPackageManager().queryIntentActivities( mainIntent, 0); for (ResolveInfo info : list) { // Utilise getPackageManager est l'objet info } Link to comment Share on other sites More sharing options...
naholyr Posted May 5, 2010 Share Posted May 5, 2010 AndroidSnippets à la rescousse : http://www.androidsnippets.org/snippets/70/ Context.getPackageManager().getInstalledPackages(0) Link to comment Share on other sites More sharing options...
arnouf Posted May 5, 2010 Share Posted May 5, 2010 AndroidSnippets à la rescousse : http://www.androidsnippets.org/snippets/70/Context.getPackageManager().getInstalledPackages(0) bien vu! Link to comment Share on other sites More sharing options...
Mokujil Posted May 5, 2010 Author Share Posted May 5, 2010 Ahh super, merci beaucoup!! Je test ça dès demain. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.