apk

Too large APK due to multiple densities and screens sizes?

浪尽此生 提交于 2019-12-23 17:16:38
问题 Google suggests to create for each image 4 different versions - one for each density (ldpi, mdpi, hdpi, xhdpi). Sometimes you might even want to create others, based on the screen size (small, normal, large, xlarge). This causes a weird situation where most of the app's images will never be used by the app, right? How come Google doesn't create multiple APKs on their website, to target the best APK to the end user's device, so that 100% of the resources will be targeted on the device's specs?

Too large APK due to multiple densities and screens sizes?

≡放荡痞女 提交于 2019-12-23 17:13:01
问题 Google suggests to create for each image 4 different versions - one for each density (ldpi, mdpi, hdpi, xhdpi). Sometimes you might even want to create others, based on the screen size (small, normal, large, xlarge). This causes a weird situation where most of the app's images will never be used by the app, right? How come Google doesn't create multiple APKs on their website, to target the best APK to the end user's device, so that 100% of the resources will be targeted on the device's specs?

ant command does not generating apk file

旧街凉风 提交于 2019-12-23 16:34:43
问题 I am using Ant to build my application.my app uses a library project.so first of all i had run the below command in commandline to generate the build.xml in my project. " android update project --target 5 -p path_of_my_project -l path_of_my_library_project " (my application's build target is 4.0).Above command generated a build.xml file in my project.Then i run "ant" command in command prompt.it has shown the result as BUILD SUCCESSFULL. but when i checked my project's bin folder there is no

Does adding dependency to gradle in android studio while not using it at all affect apk size?

天大地大妈咪最大 提交于 2019-12-23 16:24:52
问题 In a big project while former developers already worked on, you can find dependencies in gradle that doesn't have any usages at all. Do those dependencies affect apk size? and how dependencies affect apk size, what if you're just using one method from a library, does this mean that all the library files attached to your apk . 回答1: Yes, unused dependencies do increase the apk size. Enabling minifyEnabled true can analyze all the bytecode and remove unused classes and methods. buildTypes {

Unable to sign release APK - :app:shrinkReleaseMultiDexComponents FAILED

穿精又带淫゛_ 提交于 2019-12-23 15:02:19
问题 I'm trying to generate a signed apk and the log keeps showing me the following error: :app:compileReleaseJavaWithJavac Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :app:compileReleaseNdk UP-TO-DATE :app:compileReleaseSources :app:collectReleaseMultiDexComponents :app:proguardRelease Warning:com.google.android.gms.internal.zzac: can't find referenced class android.net.http.AndroidHttpClient Warning:com.google.android.gms.internal

如何获取android app的Activity

限于喜欢 提交于 2019-12-23 12:58:58
方法一 如有你有待测项目的源码,那么直接查看源码就好。如果没有,那么请联系有源码的同学,这是推荐方法。 方法二 直接把apk后缀改为zip格式,打开压缩包后再打开AndroidManifest.xml文件。找到manifest和activity地方,就是包名跟activity名。 方法三 如果你没有代码,那么可以反编译该app。 这里将用到2个工具,分别是dex2jar和jd-gui。你可以在 这里下载 目前为止的最新版本以及示例apk。 我们以工具包里的ContactManager.apk为例,简单介绍一下反编译的流程。 1,重命名ContactManager.apk为ContactManager.zip并解压得到文件classes.dex; 2,解压dex2jar-0.0.9.15.zip,并从命令行进入该文件夹; 3,运行命令 d2j-dex2jar.bat path_to\classes.dex 在当前文件夹下得到classes-dex2jar.jar; 4,解压jd-gui-0.3.6.windows.zip得到文件jd-gui.exe; 5,使用jd-gui.exe打开classes-dex2jar.jar; 嗯,好了,可以尽情欣赏了。上图。 参考 http://testerhome.com/topics/1030 http://www.cnblogs.com

Xamarin Android 10 Install APK - No Activity found to handle Intent

℡╲_俬逩灬. 提交于 2019-12-23 10:13:48
问题 I want to install a 3rd party app from the filesystem from my xamarin android app. The code I used successfully before Android 10 was pretty straightforward and easy. Intent intent = new Intent(Intent.ActionView); Uri data = Uri.FromFile(file); intent.SetDataAndType(data, "application/vnd.android.package-archive"); context.StartActivity(intent); This code does not work on Android 10 because of ACTION_VIEW and ACTION_INSTALL_PACKAGE were deprecated in Android 10. Looks like we now need to use

Which files are included in APK file

青春壹個敷衍的年華 提交于 2019-12-23 09:42:02
问题 I have a lot of unused images in my android app. Those images are placed in separate folder in project root directory. They are not being used anywhere in a project, but I need to keep them. My concern is that will these unused images be included in the apk file? Since there are a lot of them and increase the size of apk file. 回答1: Files stored in the root directory (including custom subdirectories) are not included in the APK. It is very common practice to have your own files needed for the

Android - Error signing my apk wit jarsigner

*爱你&永不变心* 提交于 2019-12-23 09:36:53
问题 I made a key file like this: C:\Users\Alex>keytool -genkey -v -keystore alexkey.keystore -alias alexkey -keyalg RSA -keysize 2048 -validity 10000 and then I tried to sign my .apk file with it like this: C:\>jarsigner -verbose -keystore alexkey.keystore problemio.apk alexkey and I saved the .apk file by right-clicking the project name in Eclipse --> Android tools --> Export unsigned application package. and then I put the .apk file in the same dir as the key, and ran the jarsigner command from

Google Play Android .apk Upload “Failed to run aapt dump badging”

淺唱寂寞╮ 提交于 2019-12-23 08:58:37
问题 It has been almost a year since I last uploaded an App to the Google Play Developer Console (it is a Cordova App that I have signed and zip aligned); follow the same process I have used successfully in the past I am now getting the following error: Upload failed Your APK cannot be analyzed using 'aapt dump badging'. Error output: Failed to run aapt dump badging: ERROR: dump failed because assets could not be loaded What's happening here? 回答1: This was a total noob mistake : Part of the