Hi all,
I'm trying to retrieve a result from sub activity but my method
onResultActivity() is called before I set the result or at least the
log say that. This is the snipped for starting the sub activity:
protected static final int REQUEST_TEXT = 111;
......
@Override
public void onClick(View v) {
super.onClick(v);
Intent intent = new Intent(EventsActivity.this,
TextActivity.class);
startSubActivity(intent, REQUEST_TEXT);
}
and this is the snipped for the result:
private OnClickListener mConfirm = new
View.OnClickListener() {
@Override
public void onClick(View v) {
EditText text = (EditText) findViewById(R.id.text_field);
String data = "" StringBuffer(text.getText()).toString();
Log.d("TEXT_ACTIVITY", "Sending back data=""http://code.google.com/android/kb/commontasks.html#opennewscreen">http://code.google.com/android/kb/commontasks.html#opennewscreen
.
And one more thing there is an error in the example for
onResultActivity() method.
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-no...
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---
|
- [android-developers] Problem with returning result from act... Borislav Bonev
-