Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check ideal state if application when its in background? #31

Open
lmk07 opened this issue Jul 9, 2021 · 1 comment
Open

How to check ideal state if application when its in background? #31

lmk07 opened this issue Jul 9, 2021 · 1 comment

Comments

@lmk07
Copy link

lmk07 commented Jul 9, 2021

hi
I'm having the android application. i will be putting the application to background. now i need to check, if the app is active or ideal state. for example : some application may do some operation even though its in background, like playing Audio or Video or downloading.

i want to know how to check it in android studio? thanks
@codinguyy
Copy link

Hey,
what do you mean by "i need to check, if the app is active or ideal state" and why do you need to check that?
When the app goes into the background the onPause() method is called before the app "disappears" from the screen. If you close the app completely the onDestroy() method is called and is in idle state.

In your context the app is in the Pause-State.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants