我目前正在开发的应用程序依赖于第三方应用程序(OIFileManager)。
我的问题是处理这些依赖关系的一般方法是什么?
告诉用户解决吗?
嵌入 3d 方 apk(如果其许可证允许)
自动解决它(也许安卓市场有它的系统)。
我目前正在开发的应用程序依赖于第三方应用程序(OIFileManager)。
我的问题是处理这些依赖关系的一般方法是什么?
告诉用户解决吗?
嵌入 3d 方 apk(如果其许可证允许)
自动解决它(也许安卓市场有它的系统)。
没有自动的方法。用户必须手动从 Android Market(或其他来源)安装依赖项。
Intent scanIntent = new Intent("com.google.zxing.client.android.SCAN");
Intent marketIntent = new Intent(ACTION_VIEW, Uri.parse("market://details?id=com.google.zxing.client.android"));
try {
startActivityForResult(scanIntent);
} catch (ActivityNotFoundException e) {
try {
// show a prompt here
startActivity(marketIntent);
} catch (ActivityNotFoundException e) {
Toast.makeText(this, "Market not installed.", LENGTH_SHORT).show();
}
}
那么你: