What is the difference between service and a thread?
Options
1) Service - is a component of android, which runs in the background with out any UI. Service will have default one thread to run in background. Thread - is similar to service, it also runs in the background.
2) Service - is a component of android, which runs in the background with out any UI. By default service will run in Main thread only. Thread - is not android component, but still one can use thread to do some background task. Using thread in place of service is discouraged.
3) Option 2 is right, but one can use Thread in place of Service, no problem will come.
4) Option 1 is right, but it may have UI also some times.
What is a context in android ?
Options
1) It is an interface to store global information about an application
2) It is used to create new components.
3) Android has two contexts, those are getContext() and getApplicationContext()
4) All of above
Options
1) When the application is not responding ANR will occur.
2) Dialog box is called as ANR
3) When Android forcefully kills an application, it is called ANR
4) None of the above
There is something I don't understand about algebra: It has been around for thousands of years, yet no one has ever found out what the value of "x" or "y" really is.
Richard van der Merwe
Do you know what seems ODD to me?
Those numbers which are not divisible by 2.