I know that it is possible to share SharedPreferences (using the following) when the two apps have the same sharedUserId:
Context secondApp = createPackageContext("com.example.secondapp", 0);
SharedPreferences secondAppPreferences = secondApp.getSharedPreferences("name_of_shared_preferences_file", 0);
but is it at all possible to share strings from the "strings.xml" file so that i can get a string-array from the second app's stings.xml??
i have tried:
secondApp.getResources().getStringArray(R.array.name_of_arr);
but it throws an error (array cannot be resolved or is not a field) on "array" in "R.array.name_of_arr"