For pause the change of my card, I use a Doevent into sub:
I Call this sub whit example:
In the smartphone it' work but into Android TV it's wrong and exit program.
If I delete DoEvents, dont exit but the image not refresh.
The DoEvents have a problem with Android TV.
How can I change this sub to make sure that you do the same and refresh the page and the pictures?
Thanks
B4X:
Sub attesa(sec As Double)
Dim Ti As Long
Ti = DateTime.Now + (sec * 1000) '1000=1 Secondo
Do While DateTime.Now < Ti
DoEvents
Loop
End Sub
I Call this sub whit example:
B4X:
....
For nCarta=0 To 4
If CardChange(k)=1 then
imgCard(nCarta).Enabled=False
imgCard(nCarta).Bitmap=LoadBitmap(File.DirAssets,ListaCarte.get(nCarta) & ".png")
attesa(.3)
ListaCarte.Set(k,ListaCarte.get(k+Cambio))
CardChange(k)=0
End If
Next
....
In the smartphone it' work but into Android TV it's wrong and exit program.
If I delete DoEvents, dont exit but the image not refresh.
The DoEvents have a problem with Android TV.
How can I change this sub to make sure that you do the same and refresh the page and the pictures?
Thanks
Last edited: