• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Android by
Q:
How can the ANR be prevented?

1 Answer

0 votes
by

One technique that prevents the Android system from concluding a code that has been responsive for a long period of time is to create a child thread. Within the child thread, most of the actual workings of the codes can be placed, so that the main thread runs with minimal periods of unresponsive times.

Related questions

0 votes
asked Oct 7, 2019 in Android by pranay jain
0 votes
asked Oct 5, 2019 in Android by pranay jain
...