LeGeNDuS wrote:
> Hello, I want to pass a String like the input of a new activity, to
> let this one use the String some operations. The code I try is this...
>
> Intent i2 = new Intent(this, SaveContact.class);
> i2.putExtra("contactcode", result);
> startActivityForResult(i2, 2);
>
> And in the activity I try to recover it:
>
> String textout = savedInstanceState.getString("contactcode");
>
> In the onCreate part. I have seen that uris are normally used, but I
> don't know how to pass that String by using a URI.
You are not using the right code to retrieve your value. Use
getIntent().getStringExtra() instead.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android App Developer Books: http://commonsware.com/books
--
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