AHilberink Well-Known Member Licensed User Longtime User May 26, 2021 #1 Hi, Using Notifications I am able to start an Activity by tapping the Notification. This starts the activity. I use: B4X: Copy 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é
Hi, Using Notifications I am able to start an Activity by tapping the Notification. This starts the activity. I use: B4X: Copy 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 Well-Known Member Licensed User Longtime User May 26, 2021 #2 If this is not possible, also getting the Tag value would be helpfull. Kind regards, André Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 27, 2021 #3 You can get the Tag parameter (Nummer in this case): https://www.b4x.com/android/forum/t...-extracting-the-tag-problem.30473/post-176932 Upvote 0
You can get the Tag parameter (Nummer in this case): https://www.b4x.com/android/forum/t...-extracting-the-tag-problem.30473/post-176932
AHilberink Well-Known Member Licensed User Longtime User May 27, 2021 #4 Erel said: You can get the Tag parameter (Nummer in this case): https://www.b4x.com/android/forum/t...-extracting-the-tag-problem.30473/post-176932 Click to expand... Thanks. This works great. Upvote 0
Erel said: You can get the Tag parameter (Nummer in this case): https://www.b4x.com/android/forum/t...-extracting-the-tag-problem.30473/post-176932 Click to expand... Thanks. This works great.
Erel B4X founder Staff member Licensed User Longtime User May 27, 2021 #5 Tip: the correct way to work with Activity.GetStartingIntent: Code: Copy 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 Upvote 0
Tip: the correct way to work with Activity.GetStartingIntent: Code: Copy 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
AHilberink Well-Known Member Licensed User Longtime User May 27, 2021 #6 Erel said: Tip: the correct way to work with Activity.GetStartingIntent: Code: Copy 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 Click to expand... I changed my code according. Thanks again. Upvote 0
Erel said: Tip: the correct way to work with Activity.GetStartingIntent: Code: Copy 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 Click to expand... I changed my code according. Thanks again.