Re: [android-developers] How to: Free to Paid App and retain preference and db files?

2012-07-03 Thread Francisco M. Marzoa Alonso
On 30/06/12 11:22, Fred Niggle wrote: as long as the .apk has the same name, i.e. com.my.app, then you wont lose the preferences and database. That's impossible, indeed. Two different applications may have different package names. And the only way of having one per pay version and another free,

Re: [android-developers] How to: Free to Paid App and retain preference and db files?

2012-07-03 Thread Francisco M. Marzoa Alonso
If you use a SQLite3 db or so for preferences, you cannot access it from different packages, but in some cases you can implement an export/import mechanism, saving the preferences in a file into the external SD card. My first app uses just a plain text file written into the SDCard and for having

[android-developers] How to: Free to Paid App and retain preference and db files?

2012-06-30 Thread Mystique
Hi, I have a Ads supported app and I am planning to release a paid version without Ads and extra features. My questions are how do I release the app so my user can purchase and use with losing the preferences and db? Can I package it with the same name and upload into Google Play as new app

Re: [android-developers] How to: Free to Paid App and retain preference and db files?

2012-06-30 Thread Fred Niggle
as long as the .apk has the same name, i.e. com.my.app, then you wont lose the preferences and database. If the.apk is different then you will need to consider how to export the sharedprefs/db from the current version (an update), to the sdcard, and have an import function in the newer version.

Re: [android-developers] How to: Free to Paid App and retain preference and db files?

2012-06-30 Thread Mystique
Hi Fred, That is good to know. So Google play don't care if 2 Apps has the same apk/com.my.app is that right? Thanks. On Saturday, 30 June 2012 17:22:37 UTC+8, Fred Niggle wrote: as long as the .apk has the same name, i.e. com.my.app, then you wont lose the preferences and database. If

Re: [android-developers] How to: Free to Paid App and retain preference and db files?

2012-06-30 Thread Fred Niggle
Hello, I have never tried to publish to identical .apk's, but I do not think google play will not allow 2 identical app names. If I am wrong then I hope someone else will step in and correct me. On 30 June 2012 11:08, Mystique joven.ch...@gmail.com wrote: Hi Fred, That is good to know. So

Re: [android-developers] How to: Free to Paid App and retain preference and db files?

2012-06-30 Thread Raghav Sood
Google Play will not allow you do upload two apps with the same package name. Due to this, there are only a few ways you can share the content. You can use Content Providers to serve it from the free app to the paid one. You can save it on the SD Card and allow everyone to read it. I *think*

Re: [android-developers] How to: Free to Paid App and retain preference and db files?

2012-06-30 Thread Fred Niggle
Hello Raghav, Thats a great tip about Content Providers! Regards, Fred On 30 June 2012 16:15, Raghav Sood raghavs...@gmail.com wrote: Google Play will not allow you do upload two apps with the same package name. Due to this, there are only a few ways you can share the content. You can use