http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String,%20int
)

2009/6/22 Sujay Krishna Suresh <[email protected]>

> by doesnt work do u mean that u r unable to read the extra in ur target
> activity?
> if so plz post d code tat u r usin for this purpose... so tat we can find d
> actual mistake..
>
> On Mon, Jun 22, 2009 at 1:40 PM, Will <[email protected]> wrote:
>
>>
>> I am trying to setExtra(string, int) in an Intent which will be used
>> in startActvityForResult(). This works:
>>
>>        Intent i = new Intent(this, ClassA.class);
>>        i.setAction(ACTION_CUTSOM);
>>        startActivityForResult(i, ACTIVITY_CUSTOM);
>>
>> This doesn't:
>>
>>        Intent i = new Intent(this, ClassA.class);
>>        i.putExtra(intStringName, intArg); // where the args are (String,
>> int)
>>        i.setAction(ACTION_CUTSOM);
>>        startActivityForResult(i, ACTIVITY_CUSTOM);
>>
>> If I try to catch the putExtra with a try/catch block, it still fails.
>> Any reason why this doesn't work?
>>
>>
>
>
> --
> Regards,
> Sujay
> Fran Lebowitz<http://www.brainyquote.com/quotes/authors/f/fran_lebowitz.html> 
> - "Life is something to do when you can't get to sleep."
>  >
>

--~--~---------~--~----~------------~-------~--~----~
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