How many types of context in android and what is better to use

android, android-context

Solution

For Your better understands you should read android official blog. an also look at HackBod Answer.

There are some references URL which help you more about the context

- What exactly does using the Application Context mean?

- Difference between Activity Context and Application Context

- http://android-developers.blogspot.de/2009/01/avoiding-memory-leaks.html

Thanks

Problem

I just wanted to know how many ways to get the context, which method used in which situation. Which one better to use, and what is the main and key deference between them.

Original source

Related problems