Page 1 of 1

[SOLVED] how to get 'application hidden' 'application restored' in android

Posted: Thu Jul 09, 2020 9:44 pm
by trabitboy
UPDATE: love.focus() works on android

now to restore proper zoom :)

original post:
HI !

I work on a cross platform d#paint animation inspired tool .
https://github.com/trabitboy/zaz2nim

A problem I have on android is that on some events , on some devices,
application minimizes, and when I restore it .

To try to recreate the canvas and redo proper setup ( see dpi scale etc ),
I would like to intercept the ' visible/restored/onfocus' state of the app .
love.visible doesn't seem to work on android ?

Thanks for any pointer!