Android Question white screen when app start

Douglas Farias

Expert
Licensed User
Longtime User
Hi all.

i m making a simple app with push notification.
i m using a server where i check every minute if have new updates on a feed of one website.

B4X:
StartServiceAt("", DateTime.Now + 1 * DateTime.TicksPerMinute, False)
i m using this code.

and this to show a notification
B4X:
            If nb.IsInitialized = False Then nb.Initialize
            nb.SmallIcon = "iconbb"
            nb.Ticker = "Nova Notícia"
            nb.Tag = corpo
            nb.setActivity(Main)
            nb.DefaultLight = True
            nb.DefaultVibrate = True
            nb.DefaultSound = True
            nb.ContentTitle = "JP Agora"
            nb.ContentText = texto
            nb.AutoCancel = True
       
            nb.ContentInfo = "JP Agora"
            'nb.SubText = "the subtext"
           
            nbbox.Initialize
            nbbox.BigContentTitle = "JP Agora"
            nbbox.SummaryText = "Ler Notícia..."
           
            For i = 0 To ltitle.Size -1
            nbbox.AddLine = ltitle.Get(i)
            Next

            nb.SetStyle(nbbox)
            nb.Notify(1)


this is working fine, i see the notifications, the app can stay 24h+ on and will show all notifications, but when i click on any notification start the main but only with a white screen, dont call

Sub Activity_Create(FirstTime As Boolean)

resume, nothing only a white page, i need close the app on recents apps and click again on the notification.

what the cause of this problem and how to fix, someone have the same error here?
 

Douglas Farias

Expert
Licensed User
Longtime User
i m found the problem, the service name = Starter, only changed the service name and works fine.

Can close this, fixed thx.
 
Upvote 0
Top