Reputation: 12656
I published my app on Android Market a long time ago and now I want to change the sharedUserId so it can share data with my other app. If I simply change it, the new version cannot read files created by the old version. The only ways I can think of to get around problem this are all cumbersome and error-prone. Using the SD card as temporary storage has several pitfalls and I cannot change the file permissions because my app uses the 2.1 SDK.
Does anyone know a (simple and reliable) way to handle this problem?
Thanks in advance...
Upvotes: 0
Views: 785
Reputation: 20936
I did not implemented what I'm going to propose but I think it is possible. Consider the following idea (if you implement it and publish your code it will be nice, cause I think that the problem is common).
So in the old version of application with the new update you can create a Content Provider that will share your private files. You can install the permission to this content provider with the level signature. After that in a new application you can query data that is stored into this content provider. Thus, you'll have two applications: one with the content provider and the second will just use this content provider to download (query) your data.
Good luck!
Upvotes: 1