Take a look at:
Context contxt = createPackageContext("com.exam.provider", CONTEXT_IGNORE_SECURITY); // I know, the package must be (and IS) already installed ;-)
ClassLoader loader = contxt.getClassLoader();
loader.loadClass("com.exam.provider.MyGestureOverlayView"); // I'm sure this class DOES exist in "com.exam.provider"
But this code always throws java.lang.ClassNotFoundException
. Also note that both android applications share the same user id via:
<manifest
...
android:sharedUserId="whatever"
...
>
I am completely frustrated. Any idea?