开发者

How to install the new apk file without uninstall the old apk file on an Android device?

My apk file size is 2MB. First time installing the apk file in the device there is no problem. Suppose some changes in the application after that generated the new apk file. I am tr开发者_如何学Pythony to install the new apk file in the same device then it shows some message first uninstall the previous one(i.e. , same application) in the device. But small apk files, I am not facing this problem.

Is it possible to install the new apk file without uninstall the old one?


It is not connected with apk size but with the fact that the old apk was signed with different key than the new one. So you must uninstall it before installing new application but you will have to do it only once.


Use this command in command prompt: adb install -r yourapplicationname.apk


It is because of the Low Internal Memory size. Uninstall applications that are not useful. Try it after that. If u don't want to uninstall any application then you can install your APK file directly to the SD Card. Because of that your problem is solve.

I give you the hint how to Install APK on SD Card..

First create Emulator with SD Card Support and SD Card size - 1024 MiB.

After that U can Install your apk file on to sd card directly using command prompt.

Type below code in command prompt to install:

adb install -s name.apk


You need to change the package name of your application otherwise it is not possible to install two applications with same package name and different keys.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜