10

Where can I see the implementation of this class?

I've looked in the internal packages of Android on GrepCode but haven't found it.

0

2 Answers 2

15

The class to search for is android.app.ContextImpl.

See ContextImpl for Android 4.0.4 here or version overview here.

Sign up to request clarification or add additional context in comments.

Comments

4

Here: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/content/Context.java

4 Comments

No, Michael, it's just abstract class but I searching for implementation, another words I want to see how Context's methods works.
@Ivan It's really hard to follow your sentences. Please use correct spelling and grammer and keep a good style. So, I still can't say what you are searching for exactly. ContextWrapper extends Context. Activity extends ContextWrapper. Maybe Activity is what you are searching - a well working implementation of Context.
sorry for my bad English. But I try to explain what I need, ContextWrapper(and Activity) it's classes just used contract of context, they do not provide behaviour of Context. Please look at ContextWrapper's startActivity() method. It uses mBase object, it's implementation of Context. And instance to mBase assigns in constructor. Thanks for trying to help!
Im still not sure what's the actual problem. Context does provide an empty implementation of the startActivity method, just ready to be overriden. :)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.