Emme Developer Well-Known Member Licensed User Longtime User Apr 24, 2018 #1 Hi to all! I'm trying NB6 to send notification. Build method expect an activity. Is possible to start an intent instead an activity? I need to put extra data in activity. This is the code of the intent: Code: Copy Dim in As Intent in.Initialize("","") in.SetComponent(Application.PackageName & "/.listactfriends") in.PutExtra("friend","") I tried this code but doesn't work: Code: Copy NotificationBuilder.RunMethod("setContentIntent", Array(Intent)) I got java.lang.RuntimeException: Method: setContentIntent not matched. and i don't understand how get a pendingintent by my intent Many thanks!
Hi to all! I'm trying NB6 to send notification. Build method expect an activity. Is possible to start an intent instead an activity? I need to put extra data in activity. This is the code of the intent: Code: Copy Dim in As Intent in.Initialize("","") in.SetComponent(Application.PackageName & "/.listactfriends") in.PutExtra("friend","") I tried this code but doesn't work: Code: Copy NotificationBuilder.RunMethod("setContentIntent", Array(Intent)) I got java.lang.RuntimeException: Method: setContentIntent not matched. and i don't understand how get a pendingintent by my intent Many thanks!
Erel B4X founder Staff member Licensed User Longtime User Apr 25, 2018 #2 You can use the tag property to add additional data to the intent. Upvote 0