Android Context Get getInstalleApps(Context mContext)

Here you can find the source of getInstalleApps(Context mContext)

Description

get Installe Apps

Declaration

public static List<ResolveInfo> getInstalleApps(Context mContext) 

Method Source Code

//package com.java2s;

import java.util.List;

import android.content.Context;
import android.content.Intent;

import android.content.pm.ResolveInfo;

public class Main {
    public static List<ResolveInfo> getInstalleApps(Context mContext) {
        Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
        mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
        return mContext.getPackageManager().queryIntentActivities(
                mainIntent, 0);//from   w  w  w  . ja  v  a  2 s  .  c  o  m
    }
}

Related

  1. getFAFont(Context context)
  2. getFiles(Context context, String ext)
  3. getFromAssets(Context con, String fileName)
  4. getHelpUrl(Context context, String s)
  5. getImei(Context context, String imei)
  6. getInstance(Context context)
  7. getIntSPR(String key, Context context)
  8. getLastKnownLocation(Context context)
  9. getLineErrorPaint(Context context)