apk

Why android app size is increasing after publishing on market?

喜欢而已 提交于 2019-12-10 23:14:20
问题 I have published my app on android market recently. It is showing the app size as 5.4MB whereas actual apk size is 2.8MB. Why it is showing 2MB extra? What should i do to restrict my app size? Please help me. 回答1: Your app size is increased because you on your Copy Protection Option ON in publishing option. Market needs extra space to store those security related information. Helps prevent copying of this application from the device. Increases the amount of memory on the phone required to

常用的adb命令

ⅰ亾dé卋堺 提交于 2019-12-10 22:56:40
1.登陆设备命令:adb devices (进入adb 检查模拟器是否上线) 2.进入模拟器操作系统:adb shell (adb不区分大小写,但shell区分) adb -s 安卓系统 shell 3.显示系统中的全部android平台: android list targets 4.停止ADB服务: adb kill-server 启动ADB服务: adb start-server 5.adb shell pm list package -f |findstr 包名(Windows系统) pm list package -f |grep 包名 (Android系统) 6.adb shell monkey -p com.android.calculator2 -v -v 500 使用Monkey对计算器程序压力测试 7.输出日志到本地目录: adb shell monkey –p com.android.calculator2 -v 500 > 本地目录\XXX.log 8.单个设备时安装apk:adb install 本地路径.apk 9.多个设备时安装apk: adb -s 虚拟设备名称 install 本地路径.apk 10.卸载apk软件: adb uninstall 软件名 11.查看卸载结果:cd /data/data ls-l 12.从PC上发送文件到安卓模拟器

adb 安装APK

谁说我不能喝 提交于 2019-12-10 22:48:30
adb push xxx.apk data/test adb shell cd data/test pm install xxx.apk pm install -t -r xxx.apk adb install xxx.apk 来源: CSDN 作者: sunnychou0330 链接: https://blog.csdn.net/m0_37693335/article/details/103483556

My app just building and never installs apk on actual device(Android Studio)

僤鯓⒐⒋嵵緔 提交于 2019-12-10 22:42:07
问题 So after running the app i get this Gradle Console and the apk is never installed on my device thus the app is never shown. Gradle Console: Executing tasks: [:app:assembleDebug] Configuration on demand is an incubating feature. :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE :app:prepareComAndroidSupportDesign2311Library UP-TO-DATE :app

Android Studio build/apk not visible

♀尐吖头ヾ 提交于 2019-12-10 21:45:35
问题 I'm using the Crashlytics plugin for beta testing, but the only way to upload an apk is to drag it from within Android Studio. In the terminal, I can access <app>/build/apk/ , but in Android Studio, that folder is not showing up (I can see dex , lint etc). Any idea how to display it? Thanks 回答1: Android Studio automatically hides certain directories to reduce the load of indexing all those files. If you look in your module's iml file (e.g. root/main_module/main_module.iml), you'll see this

Bluetooth File transfer on Android(even restricted types)

孤者浪人 提交于 2019-12-10 19:52:13
问题 I was making an application in which I wanted to add a feature to send apk files via bluetooth. Its not allowed through the traditional method as apk is restricted file type so i used BluetoothShare.java. Apparently it doesn't work on Jellybean. I get a nasty security Exception. Same as this one. Android bluetooth print stopped working on 4.1 Is there any way I can go about doing this, if possible? 回答1: rename the .apk to .zip and send it, then rename it back to .apk on phone. 回答2: I was able

Android APK Distribution Without “Unknown Sources” Checkbox?

落花浮王杯 提交于 2019-12-10 19:49:31
问题 We are trying to distribute our Android App outside of Google Play. Is there any way to do this without forcing the user to go through the Settings App and checking the "Allow Unknown Sources" checkbox? 回答1: Is there any way to do this without forcing the user to go through the Settings App and checking the "Allow Unknown Sources" checkbox? If they have the Android SDK installed, they can install your app via USB cable. Otherwise, they have to check that checkbox. 回答2: In addition to

Installation failed with message Error: android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space

回眸只為那壹抹淺笑 提交于 2019-12-10 19:22:25
问题 I was getting the message > Installation failed with message Failed to establish session. so following some responses to the problem I disabled Instant Run and I started getting > Installation failed with message Error: android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space. I´ve tried rebuilding, cleaning the project, to disable and enable Instant Run and to build APK but nothing solves the problem. This is my build.gradle (Module:app). apply

Building .apk and .aar library from same project

筅森魡賤 提交于 2019-12-10 19:06:26
问题 is it possible to build an apk and an aar library with gradle from the same project source? Challenge is to modify the build.gradle so that both products will be built. Do you have any advice? 回答1: Finally, Gradle offers me a really simple solution for this issue: I've created a multi module project with Android Studio and Gradle (see http://www.petrikainulainen.net/programming/gradle/getting-started-with-gradle-creating-a-multi-project-build/). One module for the app (Android Application

Android APK反编译就这么简单

混江龙づ霸主 提交于 2019-12-10 18:30:23
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 使用工具: CSDN上下载地址: apktool (资源文件获取) 下载 dex2jar(源码文件获取) 下载 jd-gui (源码查看) 下载 工具介绍: apktool 作用:资源文件获取,可以提取出图片文件和布局文件进行使用查看 dex2jar 作用:将apk反编译成java源码(classes.dex转化成jar文件) jd-gui 作用:查看APK中classes.dex转化成出的jar文件,即源码文件 二、Apk 反编译 得到Java源代码 下载上述工具中的dex2jar和 jd-gui ,解压 将要反编译的APK后缀名改为.rar或则 .zip,并解压,得到其中的额classes.dex文件(它就是java文件编译再通过dx工具打包而成的),将获取到的 classes.dex放到之前解压出来的工具dex2jar-0.0.9.15 文件夹内, 在命令行下定位到dex2jar.bat所在目录,输入dex2jar.bat classes.dex,效果如下: 在改目录下会生成一个 classes_dex2jar.jar的文件,然后打开工具jd-gui文件夹里的jd-gui.exe,之后用该工具打开之前生成的classes_dex2jar.jar文件,便可以看到源码了,效果如下: 被混淆过的效果图