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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:58:57+00:00 2026-06-13T21:58:57+00:00

I am currently working on a project just to uninstall apps, but i cant

  • 0

I am currently working on a project just to uninstall apps, but i cant seem to find out how to locate the apps install on my phone.

Can anyone point me to a tutorial or give me some insight? Your knowledge would be greatly appreciated!

  • 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-13T21:58:59+00:00Added an answer on June 13, 2026 at 9:58 pm

    Here is the code to achieve this

     package pack.GetAllInstalledApplications;
     import java.util.ArrayList;
     import java.util.List;
     import android.app.Activity;
     import android.content.pm.PackageInfo;
     import android.graphics.drawable.Drawable;
     import android.os.Bundle;
     import android.widget.ArrayAdapter;
     import android.widget.ListView;
     import android.widget.Toast;
    
     public class GetAllInstalledApplicationsExample extends Activity {
    
     public  ArrayList<PackageInfoStruct> res = new ArrayList<PackageInfoStruct>(); 
     public ListView list;
     public String app_labels[];
    
     public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
    
            getPackages();
    
            list = (ListView)findViewById(R.id.ListView01);     
            try{
                list.setAdapter(new ArrayAdapter<String>(this,
                    android.R.layout.simple_dropdown_item_1line, app_labels));
            }catch(Exception e){
                System.out.println("Err ++> " + e.getMessage());
                Toast.makeText(getApplicationContext(),e.getMessage(),Toast.LENGTH_SHORT).show();
            }
    
     }
    private ArrayList<PackageInfoStruct> getPackages() {
        ArrayList<PackageInfoStruct> apps = getInstalledApps(false); /* false = no system packages */
        final int max = apps.size();
        for (int i=0; i<max; i++) {
            apps.get(i);
        }
        return apps;
    }
    
    private ArrayList<PackageInfoStruct> getInstalledApps(boolean getSysPackages) {
    
        List<PackageInfo> packs = getPackageManager().getInstalledPackages(0);
        try{
            app_labels = new String[packs.size()];
        }catch(Exception e){
            Toast.makeText(getApplicationContext(),e.getMessage(),Toast.LENGTH_SHORT).show();
        }                   
        for(int i=0;i<packs.size();i++) {
            PackageInfo p = packs.get(i);
            if ((!getSysPackages) && (p.versionName == null)) {
                continue ;
            }
            PackageInfoStruct newInfo = new PackageInfoStruct();
            newInfo.appname = p.applicationInfo.loadLabel(getPackageManager()).toString();
            newInfo.pname = p.packageName;
            newInfo.versionName = p.versionName;
            newInfo.versionCode = p.versionCode;
            newInfo.icon = p.applicationInfo.loadIcon(getPackageManager());
            res.add(newInfo);  
    
            app_labels[i] = newInfo.appname;
        }
        return res; 
    }
        }
         /* This class is for storing the data for each application */
         class PackageInfoStruct {
             String appname = "";
             String pname = "";
             String versionName = "";
             int versionCode = 0;
             Drawable icon;  
         }
    

    And Simply declare a List view in your XML. this will do the trick.

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

Sidebar

Related Questions

I'm currently working on a project with TFS source control. We've just gotten in
I'm currently working on a project I've just received that is asp.net + vb.
I am currently working on a project which runs just fine in both the
I'm currently working a project which based on spring MVC, it's just a standard
I'm currently working on a project which uses the AjaxControlToolkit. The panel collapses just
I am currently working on a project where i am pulling out data using
I'm currently working on a project to build a small compiler just for the
I'm currently working on a project out of a text book and I've had
I'm currently working on project, Android Internet Download Manager. In order to download the
I am currently working on Project Euler for fun, and use Haskell for practicing.

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.