Monday, July 18, 2011

[android-developers] Start Intent

>contextWhat is the context of class B?
If "Class B" is an activity the context will be "Class B"

>What is the setClass method setting?
The class that the intent is looking for.

>If I want to start yet another activity from inside another class (class C) does the context get passed across these classes?
Not exactly... The application context is what it is. Activity (Class) C will have its own context.

>Shouldn't the 'this' grab the app's context?
No... in all the OOP i've ever worked in "this" refers to the instance of parent object.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment