A Anser Well-Known Member Licensed User Longtime User Jul 23, 2016 #1 Hi, Using NotificationBuilder, when the user touch the Notification, I can invoke an Activity by using the following code. Unfortunately, I don't find a way to send few parameters to the Activity along with this. For eg CallSubDelayed2 Code: nb.setActivity(MyActivityName) I have an activity which I call using CallSubDelayed2 using a parameter. For eg Code: nb.setActivity=CallSubDelayed2(MyActivityName,"StartWithParameter",nRowId) I wish to call the activity with parameters when the user clicks on the Notification. Is that possible ? Any ideas ? Regards Anser
Hi, Using NotificationBuilder, when the user touch the Notification, I can invoke an Activity by using the following code. Unfortunately, I don't find a way to send few parameters to the Activity along with this. For eg CallSubDelayed2 Code: nb.setActivity(MyActivityName) I have an activity which I call using CallSubDelayed2 using a parameter. For eg Code: nb.setActivity=CallSubDelayed2(MyActivityName,"StartWithParameter",nRowId) I wish to call the activity with parameters when the user clicks on the Notification. Is that possible ? Any ideas ? Regards Anser
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2016 #2 CallSubDelayed can never return a result as the sub will only be executed later. You can set the Tag property and then get it in Activity_Resume: Code: If in.HasExtra("Notification_Tag") Then Log(in.GetExtra("Notification_Tag")) Upvote 0
CallSubDelayed can never return a result as the sub will only be executed later. You can set the Tag property and then get it in Activity_Resume: Code: If in.HasExtra("Notification_Tag") Then Log(in.GetExtra("Notification_Tag"))