2) I don't any version in my b4a libs folder.
So you found your problem. Copy the jar in this folder.
2) I don't any version in my b4a libs folder.
stackBuilder.addNextIntent(resultIntent);
if (nTag != null)
resultIntent.putExtra("Notification_Tag", nTag);
if(pActivity != null) {
//stackBuilder.addParentStack(pActivity.getClass());
//Informatix fix test
String pn = BA.packageName;
ComponentName cn = new ComponentName(pn, pn + "." + pActivity.toLowerCase((BA.cul)));
BA.Log(cn.toString());
stackBuilder.addParentStack(cn);
}
using the above code it shows the parent first then goes back to the child 'popup', then exits the app. It should be the other way round. I re-checked the documentation I have been reading and it indeed puts the .addNextIntent after the .addParentStack. So I moved the addNextIntent down and then neither work. tapping the notification does nothing. Go figure....
My limited skills can't help you more in this matter. I never tried to do that and I'm as puzzled as you are.
if (pActivity != null) {
String pn = BA.packageName;
ComponentName cn = new ComponentName(pn, pn + "." + pActivity.toLowerCase((BA.cul)));
stackBuilder.addParentStack(cn);
}
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 256)
java.lang.IllegalArgumentException: android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{barxdroid.nbtest/barxdroid.nbtest.Main2}
at android.support.v4.app.TaskStackBuilder.addParentStack(TaskStackBuilder.java:236)
at barxdroid.NotificationBuilder.NotificationBuilder.Notify(NotificationBuilder.java:256)
at barxdroid.nbtest.main._activity_create(main.java:256)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:167)
at barxdroid.nbtest.main.afterFirstLayout(main.java:85)
at barxdroid.nbtest.main.access$100(main.java:16)
at barxdroid.nbtest.main$WaitForLayout.run(main.java:72)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4575)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{barxdroid.nbtest/barxdroid.nbtest.Main2}
at android.app.ApplicationPackageManager.getActivityInfo(ApplicationPackageManager.java:223)
at android.support.v4.app.NavUtils.getParentActivityName(NavUtils.java:298)
at android.support.v4.app.NavUtils.getParentActivityIntent(NavUtils.java:261)
at android.support.v4.app.TaskStackBuilder.addParentStack(TaskStackBuilder.java:229)
... 17 more
java.lang.IllegalArgumentException: android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{barxdroid.nbtest/barxdroid.nbtest.Main2}
Setting Parent - ComponentInfo{barxdroid.nbtest/barxdroid.nbtest.main2}
stackBuilder.addParentStack(ResultActivity.class);