English 中文(简体)
更新该版本,并将共同的偏好倾入数据库
原标题:Updating the version and dumping shared preferences into database

I developed an android app ver 1.0 in which i stored the user data in shared preferences. Now I am developing ver 2.0 and I have the following questions about updating it

1. 导言 如何探测是否已安装了1.0版? 我指的是,它是一个纯粹的装置(直接的2.0安装),还是从1.0更新。

2. 结 论 如果被检测为1.0,我想将共享的优惠价值输入数据库。 在更新期间,共同的偏好是否超成文? 如何防止这种情况? 如果它们不成文,我就想写出一件把价值装上 load子的活动。

  1. What parameter should i set so that market gives notification that update is available. Should i set that in android manifest with same keystore?

请帮助我

感谢 你,

ChinniKrishna Kothapalli

最佳回答

The Android Documentation has a part explaining how to update your apps. Basically you increase the number of your android:versionCode in the manifest. You should also change the android:versionName field so your users can see it s a different version.

关于您向数据库倾斜的问题: 如果发现某种偏好(下载新安装时),则优惠允许你使用违约值。

我不敢肯定的是,是否安装了你的申请,除非你有像你先前版本中已有的数据库一样的内容,否则,如果存在的话,你可以检查。 这不是解决这一困难的最佳做法。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签