You can raise an Intent to start a App.how can I call the kiosk application?
Hi DonManfred, I was thinking the same thing. The package name of the test kiosk app is "gota.com", but it can not be located.You can raise an Intent to start a App.
But for it to work you need to know the packagename of the app you want to start.
Do you know which app is the Kioskapp?
Sub Timer1_Tick
Dim t As Long = Max(0, targetTime - DateTime.Now)
Dim hours, minutes, seconds As Int
hours = t / DateTime.TicksPerHour
minutes = (t Mod DateTime.TicksPerHour) / DateTime.TicksPerMinute
seconds = (t Mod DateTime.TicksPerMinute) / DateTime.TicksPerSecond
Log($"$2.0{hours}:$2.0{minutes}:$2.0{seconds}"$)
If t = 0 Then
Log("Done..")
Dim n As Notification = CreateNotification("Done Timer")
n.Notify(nid)
timer1.Enabled = False
' Dim cs As CSBuilder
' cs.Initialize.Color(Colors.Blue).Size(20).Append("Testing toast message").PopAll
' ShowCustomToast(cs,True,Colors.White)'
'
End If
End Sub
You want YOUR APP to go to foreground?I want the app to open in the foreground. Is this possible?
StartActivity from a service will not work if there is no visible activity. As a workaround you can request the special "draw over apps" permission: https://www.b4x.com/android/forum/threads/draw-on-top-of-other-apps-permission.90513/
It will allow StartActivity to work.