Android Question NB6 and B4XPages

Erel

B4X founder
Staff member
Licensed User
Longtime 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: 558
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…