简体   繁体   中英

Parallel installs of the same app on an Android handset

For my testing of my app I wan't to be able to install a current version and a test version on my handset. In that way I will always be able to test the newest revision in the field, but also be certain to have the fall-back of the tested code. My app is using a SQLite database which must be accessible to both versions. I have tried changing the name of the app, but that just changes the displayed name, but still overwrites the previous version. Any help on this?

那就是因为它们基于包工作。所以您需要更改包名称。至少要进行测试

The new Android market management console enables you to keep both versions, but only one can be active.

Increase your version code in the manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.mypack" android:versionCode="1" android:versionName="1.0-SNAPSHOT">

and upload it.

更改软件包名称是唯一的方法:在此处阅读http://android-developers.blogspot.com/2011/06/things-that-c​​annot-change.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM