Blackett Lakeless Tylopod
Blackett Lakeless Tylopod
Blackett Lakeless Tylopod
Answer: Escape characters are preceded by double backslashes. For example, a newline
character is created using ‘\\n’
Answer: Activities are what you refer to as the window to a user interface. Just as you create
windows in order to display output or to ask for an input in the form of dialog boxes,
activities play the same role, though it may not always be in the form of a user interface.
Answer: Entire lifetime – activity happens between onCreate and onDestroy, Visible lifetime
– activity happens between onStart and onStop, Foreground lifetime – activity happens
between onResume and onPause
Answer: ANR is short for Application Not Responding. This is actually a dialog that appears
to the user whenever an application have been unresponsive for a long period of time.
Question: How can the ANR be prevented?
Answer: 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.
Answer: This file is essential in every application. It is declared in the root directory and
contains information about the application that the Android system must know before the
codes can be executed.