I am using NotificationBuilder for notify my users.
This library support set Tag for each notify and read it Activity_Resume.
B4X:
Sub Activity_Resume
Try
Dim in As Intent
Dim intentExtra As String
in = Activity.GetStartingIntent
If in.HasExtra("Notification_Tag") Then
intentExtra = in.GetExtra("Notification_Tag")
Select Case intentExtra
Case"Message"
DrawScreen("Messages")
Case"Notify"
DrawScreen("Notifications")
Case"Visitor"
DrawScreen("IconWho")
Case "Bid"
DrawScreen("SeeAllBids")
EndSelect
End If
Catch
Log (LastException)
End Try
EndSub
After get Notify Tag when i try call another function i got below error. Any help
B4X:
java.lang.IllegalStateException: Recursive entry to executePendingTransactions
Dim in As Intent
Dim intentExtra As String
in = Activity.GetStartingIntent
if in <> lastintent then
lastintent = in
' Here your code
If in.HasExtra("Notification_Tag") Then
intentExtra = in.GetExtra("Notification_Tag")
Select Case intentExtra
Case"Message"
DrawScreen("Messages")
Case"Notify"
DrawScreen("Notifications")
Case"Visitor"
DrawScreen("IconWho")
Case "Bid"
DrawScreen("SeeAllBids")
EndSelect
End If
end if
Dim in As Intent
Dim intentExtra As String
in = Activity.GetStartingIntent
if in <> lastintent then
lastintent = in
' Here your code
If in.HasExtra("Notification_Tag") Then
intentExtra = in.GetExtra("Notification_Tag")
Select Case intentExtra
Case"Message"
DrawScreen("Messages")
Case"Notify"
DrawScreen("Notifications")
Case"Visitor"
DrawScreen("IconWho")
Case "Bid"
DrawScreen("SeeAllBids")
EndSelect
End If
end if
1. This is a new issue! You should create a NEW Thread for EACH question.
2. You should post errors as TEXT from the log instead of a screenshot
3. Your code cannot find a Resource. Without seeing your code we cant help. Start with 1) and give us enough informations to help.
1. This is a new issue! You should create a NEW Thread for EACH question.
2. You should post errors as TEXT from the log instead of a screenshot
3. Your code cannot find a Resource. Without seeing your code we cant help. Start with 1) and give us enough informations to help.