tags:

views:

40

answers:

1

Hi all, I have one activity in one application, which suppose to run another activity in another application, while passing to it an arguemnts|(Through putExtra)

the problem is" that i know that I must add something like:

Intent i = new Intent(target);
i.setAction("actionstring" + System.currentTimeMillis());

to the target intent(activity) so the system wont override the Extra's and ill get diffrent extra's each time i run the target activity.

But when i add the setAction i get an error:

couldnt find activity: No Activity found to handle Intent { action=actionstring1278829343752 flags=0x10000000 (has extras) }

Any idea how could i solve it with setAction? mybe something i have to add also to the manifest?

thanks,

ray.

A: 

You can not use setAction for what you're trying to achieve, you must use [putExtra][1].

[1]: http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String, java.lang.String[])

Al Sutton
You didnt get me right, i am not using setAction inorder to put the argument, i use it coz of this reason: http://stackoverflow.com/questions/3140072/android-keeps-caching-my-intents-extras-how-to-declare-a-pending-intent-that-kee //----- i gotta know how i can combine between setAction and putExtra while trying to start activity in another proccess
rayman