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:
I tried this code but doesn't work:
I got java.lang.RuntimeException: Method: setContentIntent not matched. and i don't understand how get a pendingintent by my intent
Many thanks!
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:
B4X:
Dim in As Intent
in.Initialize("","")
in.SetComponent(Application.PackageName & "/.listactfriends")
in.PutExtra("friend","")
I tried this code but doesn't work:
B4X:
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!