Hi all, I have a non-activity class which get a context.
from that class i`am starting an activity of an extern application by raising Intent. that Intent being catched by intent-filter of the extern application.
Now what I wanna do, in each context.startActivity(..) to create a new instance of the called activity(which is in the other application)
but i cant achive that target, the system force me to use on the intent which i try to launch:
Intent.FLAG_ACTIVITY_NEW_TASK (Is that the reason why I dont get multi instance activity?)
if I wont use that flag, I get that error:
07-12 09:52:49.286: ERROR/AndroidRuntime(8974): Uncaught handler: thread Thread-10 exiting due to uncaught exception
ERROR/AndroidRuntime(8974): android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
Any idea how to make it right?
thanks,
ray.