Jump to content

Liste des applications


Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...