I am trying to implement this great technique of sharing preferences across two different applications while still MODE_PRIVATE.
My problem is that the first application cannot assume that the first application is installed (and vice versa) and so:
Context c = createPackageContext("com.app.first", MODE_PRIVATE);
Must be replaced by:
Context c = createPackageContext("com.app.shared", MODE_PRIVATE);
But that mandates adding that com.app.shared
for real, which translates into a second APK?
In other words, there is only one AndroidManifest.xml
per APK and only one <manifest package= >
per manifest file. Therefore only one actual package per APK?
I don't want 2 APKs per application, I only want a single APK per application.
Is there a way to achieve this?