src/com/handsomezhou/appsearch/util/AppUtil.java
/**
	 * Return true when start app success,otherwise return false.
	 * @param context
	 * @param packageName
	 * @return
	 */
Return true when start app success,otherwise return false.
@param context
@param packageName
@return
Return true when start app success otherwise return false . @param context @param packageName @return
public static boolean startApp(Context context,String packageName){
		boolean startAppSuccess=false;
		do{
			if((null==context)||TextUtils.isEmpty(packageName)){
				break;
			}
			PackageManager pm=context.getPackageManager();
			Intent intent=pm.getLaunchIntentForPackage(packageName);
			if(null!=intent){
				context.startActivity(intent);
				startAppSuccess=true;
			}
		}while(false);
		return startAppSuccess;
	}
public static boolean startApp ( Context context , String packageName ) { boolean startAppSuccess = false ; do { if ( ( null == context ) || TextUtils . isEmpty ( packageName ) ) { break ; } PackageManager pm = context . getPackageManager ( ) ; Intent intent = pm . getLaunchIntentForPackage ( packageName ) ; if ( null != intent ) { context . startActivity ( intent ) ; startAppSuccess = true ; } } while ( false ) ; return startAppSuccess ; }
Return true when start app success,otherwise return false.
Return true when start app success otherwise return false .