Hi all,

I have a class extending  IPackageManager.Stub (does not really matter
here), the point is, I need to start an activity from this class.

I cannot do:

Intent i = new Intent();
i.setComponent(new ComponentName(<packageNameString>,
<fullyQualifiedClassNameOfActivity> ));
startActivity(i);

as my class is not an activity.

How can I do that? Btw i know I can pass the instance of the calling
activity of the non-activity class as a parameter, but I need
something else for design purposes.

So, to be clear, How can I call an activity from a non-activity
class?



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

Reply via email to