2011년 3월 10일 목요일

Home Apk Search

try {
PackageManager mPm = context.getPackageManager();
Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_HOME);
rList = mPm.queryIntentActivities( mainIntent, 0 );
} catch ( Exception e ) {
Log.e(LOG_TAG, "getHomeApp() Error", e);
}

for (int i=0; i
ResolveInfo ri = rList.get(i);

Log.v(LOG_TAG ,"[" +cName.getClassName() + "] = [" + ri.activityInfo.name+"]" );

if ( cName.getClassName().equals(ri.activityInfo.name) ) return true;

}

댓글 없음:

댓글 쓰기