|
INTERVIEW QUESTIONS
OPEN SOURCE APPLICATIONS
WEBSITE BUILDER
DETAILS
Question: How do you avoid an ANR?
Answer: You basically want as little work done as possible on the main thread, also known as the “UI thread”. Since that is the core single thread that your application runs on, you would want to keep activities that require more complex computations or network and database connections, for example, on separate worker threads so as not to slow down the main thread.
|
|
|
Category |
Website Builder Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 6588 users |
Added on |
8/2/2016 |
Views |
72250 |
Rate it! |
|
|
Question:
How do you avoid an ANR?
Answer:
You basically want as little work done as possible on the main thread, also known as the “UI thread”. Since that is the core single thread that your application runs on, you would want to keep activities that require more complex computations or network and database connections, for example, on separate worker threads so as not to slow down the main thread. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is a "MIME Type", what does it consist of, and what is it used for?
|
View Answer
|
|
Describe the key advantages of HTTP/2 as compared with HTTP 1.1 ?
|
View Answer
|
|
What is an ETag and how does it work?
|
View Answer
|
|
What is Long polling, how does it work, and why would you use it?
|
View Answer
|
|
Explain the purpose of each of the HTTP request types when used with a RESTful Web Service?
|
View Answer
|
|
What is Cross-origin resource sharing (CORS)? How does it work ?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Website Builder Interview Questions & Answers - Exam Mode /
Learning Mode
|