What should I do with long data processing?
When a new activity is opened we get a black screen for 3 seconds.
I need a way to properly handle this.
What should I do with long data processing? When a new activity is opened
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
AsyncTaskto do the processing in the background and communicate the information back to the UI on completion. Quoting the documentation,There’s a basic example of subclassing
AsyncTaskin the documentation.