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 8413143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:51:47+00:00 2026-06-10T00:51:47+00:00

I am developing one app in which i am getting Installed app from system.and

  • 0

I am developing one app in which i am getting Installed app from system.and display in listview successfully. i got each thing successfully. but now here it getting me system app also that i dont want.
System app like … Browser,setting,Alarm clock like this so that i dont needed. so what i do to filter this?
can you help me out this…

Code ::

private ArrayList<PInfo> getInstalledApps(boolean getSysPackages) {
        ArrayList<PInfo> res = new ArrayList<PInfo>();
        List<PackageInfo> packs = getPackageManager().getInstalledPackages(0);

        for (int i = 0; i < packs.size(); i++) {
            PackageInfo p = packs.get(i);
            // Fill PackageInfo
            if ((!getSysPackages) && (p.versionName == null)) {
                continue;
            }

            PInfo newInfo = new PInfo();
            newInfo.appname = p.applicationInfo.loadLabel(getPackageManager())
                    .toString();

            newInfo.pname = p.packageName;
            newInfo.versionName = p.versionName;
            newInfo.versionCode = p.versionCode;

            PackageManager pm = getPackageManager();

            ApplicationInfo appInfo;
            try {
                // Get all app information in Application info
                appInfo = pm.getApplicationInfo(newInfo.pname, 0);

                String appFile = appInfo.sourceDir;
                newInfo.size = String.valueOf(new File(appFile).length());

                long installed = new File(appFile).lastModified();
                newInfo.date = String.valueOf(installed);

                Date dtappdate = new Date(installed);
                newInfo.instdate = String.valueOf(dtappdate.toString());

            } catch (NameNotFoundException e) {
                e.printStackTrace();

            }catch (Exception e) {
                e.printStackTrace();
            }
            newInfo.icon = p.applicationInfo.loadIcon(getPackageManager());
            res.add(newInfo);
        }
        return res;
    }
  • 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-06-10T00:51:48+00:00Added an answer on June 10, 2026 at 12:51 am

    Try this:

            PackageManager packageManager = getPackageManager();
            List<PackageInfo> packageList = packageManager.getInstalledPackages(0);
            for (PackageInfo pi : packageList) {
                ApplicationInfo ai = pi.applicationInfo;
                if ((ai.flags & ApplicationInfo.FLAG_SYSTEM) == 1){
                    Log.d("APP_NAME", ai.loadLabel(packageManager).toString());
                    Log.d("PACKAGE_NAME", pi.packageName);
                    Log.d("APP_VERSION", pi.versionName);
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing one app which is based on the webservice and fetch the
I am developing one app , which is required to integrate Google checkout.I am
I'm developing a web app using a cakephp. I've one function in which I
I am developing one application. In that app I am getting the html content
I am developing one small app in which i have multiple NSURLConnection.I have created
I am developing an app which has several viewControllers. The first one is MainMenu
i'm developing an iPhone app which embed a mapView made with mkmapkit. I got
I am developing one app in which i have make sqlite Database.so there are
i am developing one app in which 9i have taken CustomeButtonField class for Make
I am developing one app in which I want to create two buttons. These

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.