src/com/handsomezhou/appsearch/util/AppUtil.java
/**
	 * uninstall app via appInfo
	 * @param context
	 * @param appInfo
	 */
uninstall app via appInfo
@param context
@param appInfo
uninstall app via appInfo @param context @param appInfo
public static void uninstallApp(Context context,AppInfo appInfo){
		if((null==context)||(null==appInfo)){
			return;
		}
		if(null!=appInfo)
		{
			if (!appInfo.getPackageName().equals(context.getPackageName())) {
				AppUtil.uninstallApp(context,appInfo.getPackageName());
			}else{
				Toast.makeText(context, R.string.can_not_to_uninstall_yourself, Toast.LENGTH_SHORT).show();
			}
		}
	}
public static void uninstallApp ( Context context , AppInfo appInfo ) { if ( ( null == context ) || ( null == appInfo ) ) { return ; } if ( null != appInfo ) { if ( ! appInfo . getPackageName ( ) . equals ( context . getPackageName ( ) ) ) { AppUtil . uninstallApp ( context , appInfo . getPackageName ( ) ) ; } else { Toast . makeText ( context , R . string . can_not_to_uninstall_yourself , Toast . LENGTH_SHORT ) . show ( ) ; } } }
uninstall app via appInfo
 @param context
 @param appInfo
uninstall app via appInfo @param context @param appInfo