apk

Installing multiple android apps with 1 APK

大城市里の小女人 提交于 2020-01-06 05:16:22
问题 I have two separate apps. Currently I am able to install them separately. I wanted to find out how I can install them using a single APK. I want to be able to have both apps still run independently of each other but I wanted to be able to package them together. This way when a user goes to the google play store they see one app, but it actually install both the apps. Thanks, Jeff 回答1: You cannot just install two apps directly without showing the user, the thing that you can do is to create a

Android Studio 发布 APK

只谈情不闲聊 提交于 2020-01-05 17:07:06
打开发布设置窗口 打开Generate Signed APK...窗口,点击Create new... 打开Create New...窗口,创建一个Key,这个Key的相关信息一定要好好保存,因为以后在进行软件升级时必需使用相同的Key。 Key store path:key的保存地址 Password:密匙库密码 Confirm:密匙库密码确认 Alias:密匙名称 Password:密码 Confirm:确认密码 Validity:使用年限 First and Last Name:颁发者姓名 Organizational Unit:组织机构 Organization:组织 City or Locality:城市 State or Province:省份 Country Code:国家 点击OK,自动加载key和密码 点击Next APK Destination Folder:APK存储地址 选择存储地址,选择生成类型,勾选V1和V2用于适用所有机型。 点击Finish生成APK,需要几分钟的生成时间。 来源: https://www.cnblogs.com/alexliuzw/p/10034510.html

ClassNotFoundException - Unable to instantiate BroadcastReceiver

被刻印的时光 ゝ 提交于 2020-01-05 08:03:33
问题 I have a Broadcastreceiver which checks for CONNECTIVITY_CHANGE and it crashes sometimes with message: 04-05 18:23:47.080 5561-5561/tenkol.design.com.imbrecords E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.RuntimeException: Unable to instantiate receiver tenkol.design.com.imbrecords.NetworkChangeReceiver: java.lang.ClassNotFoundException: tenkol.design.com.imbrecords.NetworkChangeReceiver at android.app.ActivityThread.handleReceiver(ActivityThread.java:2541) at android.app.ActivityThread

Is it possible to make an apk with no activity?

霸气de小男生 提交于 2020-01-05 07:37:06
问题 Can I make an apk that only has a service? I'm trying to make a long running service that sits in the back and updates a database. No UI. I always thought that a Service had to be bootstrapped to an Activity in order to make an APK but is that true? 回答1: You can, but you might have problems. Google prohibits an app from starting an Activity with an "action" - something from the user. See this post: How to start android service on installation It may be possible to capture a user action not

Is it possible to make an apk with no activity?

China☆狼群 提交于 2020-01-05 07:37:01
问题 Can I make an apk that only has a service? I'm trying to make a long running service that sits in the back and updates a database. No UI. I always thought that a Service had to be bootstrapped to an Activity in order to make an APK but is that true? 回答1: You can, but you might have problems. Google prohibits an app from starting an Activity with an "action" - something from the user. See this post: How to start android service on installation It may be possible to capture a user action not

I reset my Keystore password

戏子无情 提交于 2020-01-05 03:43:13
问题 I was in the in the process of singing my apk for my release and i forgot keystorepassword so i clicked reset. then I got this error. Error:Execution failed for task ':app:packageRelease'. com.android.ide.common.signing.KeytoolException: Failed to read key "app name" key from store "C:\keystore\keystore.jks": Keystore was tampered with, or password was incorrect What is my best way to fix this? 回答1: If you forgot your password, there is no way to fix this. If your application is not published

apktool命令行用法

我与影子孤独终老i 提交于 2020-01-04 15:50:22
前言 同事给了个apk的demo, 下载了apktool_2.4.1, 能直接将工程反出来。 可以看出,如果是标准的android工程,未加处理,可以直接用工具反出来。 试验 java -jar apktool_2.4.1.jar -d -f test.apk -o dir_RE -d 反汇编 -f 后面是apk的文件名 -o 后面是反编译之后的输出路径 来源: CSDN 作者: LostSpeed 链接: https://blog.csdn.net/LostSpeed/article/details/103832778

Android: Publishing draft APKs and In-App Billing Testing - how?

丶灬走出姿态 提交于 2020-01-04 09:16:11
问题 Google's documentation states that you should upload a 'draft' APK and add your In-App Products to that - you will then to able to test with your developer and other linked 'test' accounts - that's what it says... It also says you need to use the 'new' Developer Console to add products for v3 of the billing API - but uploading an APK with the new console instantly publishes it!!! - WTG there Google!!!!! You cannot unpublish an APK/revert to an earlier one either - the 'live' versions is now

how to create .apk file without using Eclipse

风流意气都作罢 提交于 2020-01-04 06:40:20
问题 I want to create "Theme Creator" for Android, so I want to create .apk file after creating theme. Can anyone guide me how to proceed? Any help in this regard will be well appreciated. 回答1: The best way I have found to create .apk without eclipse, or without any other IDE is to use maven with this neat plugin : Maven-Android-Plugin. It is actively maintained and quite well documented. You can start off with a sample. The downside of this approach is that one has to change the build process and

aapt 命令查看apk包名、主activity、版本等信息

不想你离开。 提交于 2020-01-04 01:45:34
转载自: https://blog.csdn.net/a136332462/article/details/78206682 adb shell dumpsys window w |findstr \/ |findstr name= 这断命令就是获取当前app包名和当前activity的名字 在做APP自动化的时候,获取apk的包名、activity信息是最基础的,问开发虽然是最快最简单的方式,但是这样就显得测试不是很专业了 网上找资料找半天,各种方式的都有,听他们的不如自己实践的自在,所以记录一下最简单的一种方式, 跟现在手机获取root权限有点难,所以在这种情况下,想要知道apk的包名、activity等信息也就有点困难了; 以下是通过aapt命令的方式获取包名 再次之前需要你的appium环境已经安装好了,其实aapt这个就是android-sdk自带的 以为自己的电脑为例: 1.找到aapt的位置: 我的android-sdk安装在D盘下,所以实际位置实在:D:\Program Files (x86)\Android\android-sdk\build-tools\26.0.1 要是实在找不到,就用windows的全局查找吧,在android-sdk这个文件夹下找也快 2.cmd进入这个文件夹,(因为没有将aapt加入到环境变量中,所以通过这种方式) 3.使用aapt命令