Hi All, i'm updating a library which was working great before, but the vendors released a new SDK and they are now sending the intents from within the library, i followed this thread here but i am having problems, when i send a command which is supposed to open an Admin Menu, I see in the logs Activity_Pause and Activity_Resume but nothing shows up, i am expecting a different activity pop up which would show the Admin Menu.
On the code below,
Where it says requestCode holds the value that should be used to send the intent, what does this mean exactly and how do I use the requestCode?
I am a bit confused on that part, i don't get any errors, except that the
BA.SharedProcessBA sba = ba.sharedProcessBA; part shows that sba is null, but I handled that part by checking first if null and then setting sba = mba.
Any help to get passed this issue would be greatly appreciated.
Thanks,
Walter
On the code below,
Intent:
try {
ba.startActivityForResult(ion, null); //<-- passing null instead of an intent
} catch (NullPointerException npe) {
//required...
}
BA.SharedProcessBA sba = ba.sharedProcessBA;
try {
Field f = BA.SharedProcessBA.class.getDeclaredField("onActivityResultCode");
f.setAccessible(true);
int requestCode = f.getInt(sba) - 1;
'requestCode holds the value that should be used to send the intent.
} catch (Exception e) {
throw new RuntimeException(e);
}
Where it says requestCode holds the value that should be used to send the intent, what does this mean exactly and how do I use the requestCode?
I am a bit confused on that part, i don't get any errors, except that the
BA.SharedProcessBA sba = ba.sharedProcessBA; part shows that sba is null, but I handled that part by checking first if null and then setting sba = mba.
Any help to get passed this issue would be greatly appreciated.
Thanks,
Walter