use startActivityForResult() in android_tutorial_pubsub [closed]

asked 2013-05-07 23:34:43 -0500

Gosu gravatar image

Hi, I want to modify the pubsub tutorial so the MainActivity call other Activity and wait for response. The problem is when I add startActivityForResult function, the 'talker' node and 'roxTextView' node dont show up in rxgraph. It seem NodeMainExecutor has some conflict with startActivityForResult().

Do you know how to fix it?

Thanks in advanced.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-11-26 03:26:37.432846

Comments

I'm not sure I understand completely. Are you saying that after the other activity is started, the nodes in the original activity now longer show up in rosgraph? That would be normal for at least the text view. Once a view is no longer visible, it is shutdown.

damonkohler gravatar image damonkohler  ( 2013-05-14 22:06:13 -0500 )edit

uhm not really. As soos as I start the app, the nodes was not show up. Beside, I use startActivityForResult() to call other activity and wait for response, so I think the main activity was not shutdown. After the other activity finish, the main activity will show up again.

Gosu gravatar image Gosu  ( 2013-05-15 02:37:25 -0500 )edit