0

I have an application which is signed by using the signing process described here http://developer.android.com/tools/publishing/app-signing.html. This application stores its data in a folder /data/data/mystorage/. After I install a new version of the application which is signed by using the same key the new version is not able to access the folder /data/data/mystorage. What am I missing here? From what I know the applications signed with the same certificate are supposed to be provided the same application id and hence can access previously stored data by the user. How to make sure that the application can access the data even after reinstall?

4

1 に答える 1

1

マニフェストで両方のアプリの共有ユーザーIDが同じであることを確認してください。

android:sharedUserId="com.your.app"
于 2012-07-13T10:47:56.477 に答える