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....
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....
Hey Informatix, Can I have you 'limited skills' back for a few minutes please. I thought this was working, but I have now fixed a different issue and this kicks up a fuss now.
** 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}
I had this error before, but it was before adding your code.