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.

4

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

4
  • 2
    No, Michael, it's just abstract class but I searching for implementation, another words I want to see how Context's methods works.
    – Ivan
    Commented Feb 2, 2012 at 11:23
  • @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.
    – poitroae
    Commented Feb 2, 2012 at 16:21
  • 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!
    – Ivan
    Commented Feb 5, 2012 at 22:58
  • Im still not sure what's the actual problem. Context does provide an empty implementation of the startActivity method, just ready to be overriden. :)
    – poitroae
    Commented Feb 6, 2012 at 16:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.