Sqlite shared between android flavors

0

Hello, I'm trying to make an ad-free paid version of my app that is already published in the play store. I wanted it if a person bought the paid version she did not miss all the data already registered in the free version where I stored everything in SQLite. What is the way to share SQLite data between different flavors in android?

    
asked by anonymous 21.03.2017 / 15:42

1 answer

0

You need both applications to use the same id.

Add this line to both manifest:

android:sharedUserId="com.android.xyz"

Another option is through the Custom Content Provider .

    
21.03.2017 / 16:02