From an app, I am writing values using AppPreferences(context).
How to make another app read the values? (since the context used for the AppPreferences will be different for different applications)
I could not find any sample. Please share the idea.
Currently I tried using context.createPackageContext(writerApp) and using this context in the 2nd app while creating appPreferences. It is working, but it requires both the apps having same “android:sharedUserId”.
tray Version ( 0.12.0)
From an app, I am writing values using AppPreferences(context).
How to make another app read the values? (since the context used for the AppPreferences will be different for different applications)
I could not find any sample. Please share the idea.
Currently I tried using context.createPackageContext(writerApp) and using this context in the 2nd app while creating appPreferences. It is working, but it requires both the apps having same “android:sharedUserId”.
Is there any other way?