Android Question Get NotificationID within Activity started by Notification [SOLVED]

AHilberink

Active Member
Licensed User
Longtime User
Hi,

Using Notifications I am able to start an Activity by tapping the Notification. This starts the activity.

I use:
B4X:
    n.Build(contentTitle, contentText, Nummer, BellenNaEvent).Notify(Nummer)

In activity BellenNaEvent I need Nummer to call.
Will it be possible to get this Notify(ID) after tapping?

Kind regards,
André
 

AHilberink

Active Member
Licensed User
Longtime User
Tip: the correct way to work with Activity.GetStartingIntent:
B4X:
Sub Process_Globals
   Private OldIntent As Intent
End Sub

Sub ActivityResume
Dim in As Intent = Activity.GetStartingIntent
If in.IsInitialized And in <> OldIntent Then
  OldIntent = in
  '....
End If

I changed my code according. Thanks again.
 
Upvote 0
Top