bob wrote:

> Can someone help me understand why the startActivity method is in the 
> Activity class?
>

Because it's an abstract method in 'Context' and must be implemented in any 
non-abstract 
derived type.

> I really don't feel like it clearly belongs in any class.

No one is concerned with your feelings.

In Java, *every* method and variable belongs to a type, or is local to a 
method or initializer
within a class. So your feeling violates the fundamental structure of the 
Java language itself.

> I basically want to call the function when I don't necessarily have a 
handle to an Activity object yet.

Okay.

Call from where?

-- 
Lew

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to