I have an unity activity, which launches in another process than my App:
<activity
android:name=".UnityActivity"
android:process=":UnityKillsMe"/>
I save my SharedPreferences
encrypted with this question (just in case this affects my problem and I have no idea).
Now if I want to edit a sharedPreference in process=":UnityKillsMe"
, the edits are not beeing accessable in mainProcess
, it just takes the old version of the SharedPreferences
. Not until I kill the mainProcess
and launch the app again. If I do not kill the mainProcess
, and edit the SharedPreferences
, while they have been edited in process=":UnityKillsMe"
, the edits will be overwritten, and are lost.
How do I refresh SharedPreferences
in the main process ?