>> that is generic to every program.
>
> The call itself is generic, but the arguments have to specify what activity
> you're talking about and only you know that (assuming you're not handling
> some generic intent).
generic?
Can't you use :
Intent(Context packageContext, Class<?> cls)
Create an intent for a specific component.
So....
startActivity(new Intent(this, this.class);
I haven't tested it though. If this.class doesn't resolve to the
current activity class name, you'll have to figure out a way to get it
there. I think it'll work.
Shawn
--
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