Thanks!

On Jul 9, 11:12 am, Mark Murphy <mmur...@commonsware.com> wrote:
> On Fri, Jul 9, 2010 at 2:04 PM, cindy <ypu01...@yahoo.com> wrote:
> > A very silly question, What is Context?
>
> It is a class.
>
> > How to get it?
>
> Activity is a subclass of Context. Service is a subclass of Context.
> BroadcastReceiver gets a Context object in its onReceive() method.
> Pretty much everything else gets it from one of those three sources,
> passed along as a method parameter.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to