读书人

Android装配卸载程序具体操作方法解析

发布时间: 2012-09-03 09:48:39 作者: rapoo

Android安装卸载程序具体操作方法解析

在Android安装卸载程序的源码中我们知道:

??

因为根据里面的权限我们可以 从sd卡安装一个程序:

???

?

Android安装卸载程序的操作中要想卸载一个程序;

int result = Settings.Secure.getInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 0);   if (result == 0) {   // show some dialog here   // ...   // and may be show application settings dialog manually   Intent intent = new Intent();   intent.setAction(Settings.ACTION_APPLICATION_SETTINGS);   startActivity(intent);  } 

??

读书人网 >Android

热点推荐