Android Question NB6 and B4XPages

Good question.

1. Main module, expand the template region and add in Activity_Resume:
Code: Copy
B4XPages.MainPage.ActivityResume
2. Add to B4XMainPage:
Code: Copy
Public Sub ActivityResume
    Dim in As Intent = B4XPages.GetNativeParent(Me).GetStartingIntent
    If in.IsInitialized And in <> LastIntent Then
        LastIntent = in
        If in.HasExtra("Notification_Tag") Then
            Dim tag As String = in.GetExtra("Notification_Tag")
            B4XPages.ShowPage(tag)
        End If
    End If
End Sub

Example is attached.
 

Attachments

Upvote 0
Back
Top