拿去直接用,反手给我来个赞。 哈哈哈。我是雷锋
1,实现效果
-
获取包名,应用图片,安装路径,安装大小
package com.sjws.bean;
import android.graphics.drawable.Drawable;
/**
* app信息
* @author Administrator
*
*/
public class AppInfo {
public String name;
public Drawable icon;// 图片
public boolean isInstallSd;// 是否安装在sd卡
public long size;// 安装包的大小
public boolean isSys;// 是否是系统程序
public String packageName;//包名
public AppInfo(String name, Drawable icon, boolean isInstallSd, long size,
boolean isSys,String packageName) {
super();
this.name = name;
this.icon = icon;
this.isInstallSd = isInstallSd;
this.size = size;
this.isSys = isSys;
this.packageName = packageName;
}
public AppInfo() {
super();
// TODO Auto-generated constructor stub
}
}<