ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I just found where the problem is. Basically when I call super.onActivityResult(requestCode,resultCode,data) inside onActivityResult(int requestCode, int resultCode, Intent data), in my RosActivity, it calls onActivityResult(requestCode,resultCode,data) of RosActivity.java where if (requestCode != MASTER_CHOOSER_REQUEST_CODE) it calls nodeMainExecutorService.forceShutdown();

In my MainActivity, inside onActivityResult I call super.onActivityResult(requestCode,resultCode,data) only when requestCode is different from the one I created.

I just found where the problem is. Basically when I call super.onActivityResult(requestCode,resultCode,data) inside onActivityResult(int requestCode, int resultCode, Intent data), in my RosActivity, it calls onActivityResult(requestCode,resultCode,data) of RosActivity.java where if (requestCode != MASTER_CHOOSER_REQUEST_CODE) it calls nodeMainExecutorService.forceShutdown();

In my MainActivity, inside onActivityResult I call super.onActivityResult(requestCode,resultCode,data) only when requestCode is different from the one I created.created resolving the problem.