我刚刚阅读了Android Market开发人员信息中心中添加的多个APK功能.它似乎使您能够使用针对不同设备的相同包名称上传不同的APK.
但是,此功能是否也可用于捆绑具有不同包名称的APK,因此您可以提供一组应用程序?
我正在寻找一个可以加载它并运行APK文件的网页.像Web控件那样可以获取APK文件的URL,加载它并让用户与应用程序交互(不需要在整个android系统中,只需指定APK).
可能吗?市场上有类似的东西吗?也许一个独立的开源模拟器,我可以迁移到网络上工作?
我开发了一个使用appcelerator的钛移动应用程序,它的工作正常.问题在于apk和IPA文件的大小.该应用程序包含几十行代码,但apk大小为6MB,IPA大小为4.5MB.当我谷歌关于它我看到了一些优化代码的建议,所以我尝试了,现在我的代码包含近70行,但仍然在apk和IPA中的大小相同.然后我只是运行一个简单的hello world应用程序进行交叉检查然后令人震惊的是,小型hello world应用程序也生成了5.4MB apk.怎么可能这样呢.
关于尺寸,这里发生了什么?
可以任何人解释我一步一步的过程来创建.apk文件的iPhone应用程序我正在使用xcode 4.3.1..am新手任何帮助将是一个伟大的推动我..和一些关于.apk文件的解释将是一个很有帮助..谢谢你...
我正在尝试将.apk转换为jar,因为我使用了以下链接 http://androidorigin.blogspot.in/2011/02/dex-format-to-jar-format.html
但现在我收到了错误.如:-
this cmd is deprecated, use the d2j-dex2jar if possible
dex2jar version: translator-0.0.9.13
dex2jar Health.apk -> Health_dex2jar.jar
. while process file: [Health.apk]
. ROOT cause:
java.io.FileNotFoundException: File 'Health.apk' does not exist
at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:56)
at org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:40)
at com.googlecode.dex2jar.reader.DexFileReader.readDex(DexFileReader.java:150)
at com.googlecode.dex2jar.v3.Main.doFile(Main.java:63)
at com.googlecode.dex2jar.v3.Main.main(Main.java:86)
Done.
Run Code Online (Sandbox Code Playgroud)
谁能帮我..
如何在Android中使用apksign.jar获取设备制造商密钥库证书以签署应用程序?
我最近接手了一个使用Appium进行自动移动测试的项目。我有一些应该与Appium一起运行的python脚本,但是当尝试运行它们时,我遇到了“ [INSTALL_FAILED_VERSION_DOWNGRADE]”。经过对此事的大量研究,我认为这是与Android相关的问题,它是APK版本。但是,我是Android的新手,因此要完全了解Appium和Android所做的工作就很困难。在尝试将应用程序安装到设备上时,我更倾向于解决问题,但是我觉得我已经解决了排除故障的步骤。一些示例可确保我拥有该应用程序的最新版本,卸载该应用程序,重新安装该应用程序的较旧版本并最终检查更新。
Python脚本回溯:
Traceback (most recent call last):
File "main.py", line 310, in <module>
launch()
File "main.py", line 26, in launch
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
File "C:\Python\lib\site-packages\appium\webdriver\webdriver.py", line 36, in __init__
super(WebDriver, self).__init__(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 151, in __init__
self.start_session(desired_capabilities, browser_profile)
File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 240, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 308, in execute
self.error_handler.check_response(response)
File "C:\Python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: A new session could …
Run Code Online (Sandbox Code Playgroud) 在我的应用程序中,我从服务器下载apk并将其保存在设备上。该apk用于更新应用。如果下载完成,则提示用户使用以下代码进行下载:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
Uri apkUri = FileProvider.getUriForFile(getApplicationContext(), BuildConfig.APPLICATION_ID + ".provider", updateAPK);
Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE);
intent.setData(apkUri);
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
startActivity(intent);
} else {
Uri apkUri = Uri.fromFile(updateAPK);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(apkUri, "application/vnd.android.package-archive");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
}
Run Code Online (Sandbox Code Playgroud)
这可以正常工作,但是我的问题是:ist能否获得意图的结果,因此我可以检查用户是否取消了安装?
我写了一个应用本机的应用程序,但不小心接近开发结束,我的硬盘崩溃,现在我只有APK文件,我可以从该apk文件检索反应本机代码吗?
我尝试将vips-dev软件包安装到alpine linux 3.8。但是出现以下错误:
docker run -it --rm alpine:3.8 /bin/sh -c "apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing vips-dev"
fetch http://dl-3.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
pc:fftw3 (missing):
required by: vips-dev-8.7.4-r1[pc:fftw3] vips-dev-8.7.4-r1[pc:fftw3] vips-dev-8.7.4-r1[pc:fftw3]
Run Code Online (Sandbox Code Playgroud)
怎么解决呢?
apk ×10
android ×7
alpine-linux ×1
appcelerator ×1
appium ×1
google-play ×1
install ×1
ipa ×1
iphone ×1
jar ×1
java ×1
keystore ×1
linux ×1
python ×1
react-native ×1
sign ×1
titanium ×1
vips ×1
web ×1