摘要:
http://stackoverflow.com/questions/4421527/start-android-application-info-screen/4772481#4772481 private static final String SCHEME = "package"; private static final String APP_PKG_NAME_21 = "com.android.settings.ApplicationPkgName"; private static final String APP_PKG_NAME_22 = 阅读全文
摘要:
【方法1】http://stackoverflow.com/questions/12594192/remove-activity-as-default-launcher/12594332#12594332桌面应用的启动在INTENT中需要包含ACTION_MAIN和CATEGORY_HOME.通过PackageManager的resolveActivity方法来获取一个ResolveInfo对象来得知哪个是默认启动的Activityprivate void getDefaultHome() { final Intent intent = new Intent(Intent.ACT... 阅读全文