是否可以将一个 android 应用程序隐藏在另一个应用程序中?
Is it possible to hide one android app inside another?
我想使用 google 离线翻译 lang.packs。但它必须是一个差异。有差异的应用程序。图标。
我的应用程序必须完全离线运行。 Google 如果包在 phone 上,翻译确实可以离线工作。但是这些包不能单独使用,也不能以 API 格式使用!
我从另一个答案知道,语言包和神经模型是公司的主要价值。所以他们不想把它作为 API.
免费赠送给开发者
使用像 TensorFlow 这样的库来训练我自己的神经模型是一项艰巨的任务。我想重复使用现有的 libraries\apps
基于Google Play Privacy Policy在用户不知情的情况下将一个应用程序隐藏在另一个应用程序中被视为恶意行为。
The following are explicitly prohibited:
Viruses, trojan horses, malware, spyware or any other malicious
software. Apps that link to or facilitate the distribution or
installation of malicious software.
Apps or SDKs that download executable code, such as dex files or
native code, from a source other than Google Play.
Apps that introduce or exploit security vulnerabilities.
Apps that steal a user’s authentication information (such as
usernames or passwords) or that mimic other apps or websites to trick
users into disclosing personal or authentication information.
Apps that install other apps on a device without the user’s prior
consent.
Apps designed to secretly collect device usage, such as commercial
spyware apps.
这是我的建议。
建议1:推荐方式
检查用户移动设备中安装/未安装所需应用程序的天气情况
try {
context.getPackageManager().getApplicationInfo(packageName, 0);
return true; //Application Installed
}
catch (PackageManager.NameNotFoundException e) {
return false; //Application Not Installed
}
如果没有将他们重定向到 PlayStore (Originally Answered Here)
final String appPackageName = getPackageName(); // getPackageName()
from Context or Activity object try {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName))); } catch
(android.content.ActivityNotFoundException anfe) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" +
appPackageName))); }
建议 2: 如果您希望离线分发应用程序(而不是通过 PlayStore)那么
- 在主应用程序的资产文件夹中附加所需的 Apk 文件
- 像建议 1 一样做同样的检查。但不是重定向到 PlayStore,而是启动资产文件夹中 Apk 的包安装程序。
我已经为这个场景做了一个 Demo Project。更多参考请查看
我想使用 google 离线翻译 lang.packs。但它必须是一个差异。有差异的应用程序。图标。
我的应用程序必须完全离线运行。 Google 如果包在 phone 上,翻译确实可以离线工作。但是这些包不能单独使用,也不能以 API 格式使用! 我从另一个答案知道,语言包和神经模型是公司的主要价值。所以他们不想把它作为 API.
免费赠送给开发者使用像 TensorFlow 这样的库来训练我自己的神经模型是一项艰巨的任务。我想重复使用现有的 libraries\apps
基于Google Play Privacy Policy在用户不知情的情况下将一个应用程序隐藏在另一个应用程序中被视为恶意行为。
The following are explicitly prohibited:
Viruses, trojan horses, malware, spyware or any other malicious software. Apps that link to or facilitate the distribution or installation of malicious software.
Apps or SDKs that download executable code, such as dex files or native code, from a source other than Google Play.
Apps that introduce or exploit security vulnerabilities.
Apps that steal a user’s authentication information (such as usernames or passwords) or that mimic other apps or websites to trick users into disclosing personal or authentication information.
Apps that install other apps on a device without the user’s prior consent.
Apps designed to secretly collect device usage, such as commercial spyware apps.
这是我的建议。
建议1:推荐方式
检查用户移动设备中安装/未安装所需应用程序的天气情况
try { context.getPackageManager().getApplicationInfo(packageName, 0); return true; //Application Installed } catch (PackageManager.NameNotFoundException e) { return false; //Application Not Installed }
如果没有将他们重定向到 PlayStore (Originally Answered Here)
final String appPackageName = getPackageName(); // getPackageName() from Context or Activity object try { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName))); } catch (android.content.ActivityNotFoundException anfe) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + appPackageName))); }
建议 2: 如果您希望离线分发应用程序(而不是通过 PlayStore)那么
- 在主应用程序的资产文件夹中附加所需的 Apk 文件
- 像建议 1 一样做同样的检查。但不是重定向到 PlayStore,而是启动资产文件夹中 Apk 的包安装程序。
我已经为这个场景做了一个 Demo Project。更多参考请查看