Android Question NB6 and B4XPages

Erel

Administrator
Staff member
Licensed User
Good question.

1. Main module, expand the template region and add in Activity_Resume:
B4X:
B4XPages.MainPage.ActivityResume
2. Add to B4XMainPage:
B4X:
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

  • Project.zip
    31.3 KB · Views: 110
Upvote 0
Top