Showing view from onPause of an android activity -


i need show 1 of view when onpause called android activity. practice do? there issues if show onpause?

this view shown background when activity partially visible.

basically not practice so.

the activity still visible (link), user may not notice if change anything.

also in onpause should fast.

the documentation says:

when activity b launched in front of activity a, callback invoked on a. b not created until a's onpause() returns, sure not lengthy here.

so slow down start of next activity, activity animation might little laggy if updating ui in onpause()


you may use onresume() show view.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -