Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6143117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:28:48+00:00 2026-05-23T18:28:48+00:00

Im developing an Android app in eclipse. I have a list showing the applications

  • 0

Im developing an Android app in eclipse.

I have a list showing the applications installed, the list is this:

            //Listar apps instaladas
        final ListView list1 = (ListView) findViewById(R.id.list1);
        ArrayList results = new ArrayList();
        PackageManager pm = this.getPackageManager();
        Intent inte = new Intent(Intent.ACTION_MAIN, null);
        inte.addCategory(Intent.CATEGORY_LAUNCHER);
        List<ResolveInfo> list = pm.queryIntentActivities(inte, PackageManager.PERMISSION_GRANTED);
        for (ResolveInfo rInfo : list) {
            results.add(rInfo.activityInfo.applicationInfo.loadLabel(pm).toString());
        }
          list1.setAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, results));

My questions are:
How I can do that instead of showing the icons name? if I do it

results.add(rInfo.activityInfo.applicationInfo.loadLabel(pm).toString());

show me “android.graphics.drawable @ name of the application”
And how I can do to run the application by clicking on the list? I tried several attempts, but I make the application error.
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:28:49+00:00Added an answer on May 23, 2026 at 6:28 pm

    results.add(rInfo.activityInfo.applicationInfo.loadLabel(pm).toString());
    with this line of code I assume you’re loading the label of the application, so perhaps you should try loadName or something, check what you can pick there anyway since I haven’t done this myself before.

    And which error do you get when you click the list? this would be helpful too 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been developing my Android App on Linux and Eclipse for a year
I am first time developing an android app. Very new to this. I have
I have been developing a project in eclipse for an android app. An error
i am developing an android todo list app to learn. right now in my
I'm developing an app for Android in Eclipse. Currently I target API level 3,
I am developing an Android app (see screenshots). I have a layout that looks
I am developing an Android app on my Windows 7 Home PC using Eclipse.
I am developing a mobile app for android, with eclipse as my platform. Whenever
I am developing Android TextToSpeech app. This application is not working in Android 1.5
I am developing Android app in eclipse with Android SDK 2.3, but i am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.