Hi,
How should I properly use onActivityResult in my MainActivity that extends RosActivity?
In my MainActivity, I call another activity using startactivityforresult, then in that activity I call
Intent resultIntent = new Intent(); resultIntent.putExtra(INSERTED_ORDER, orderET.getText().toString()); setResult(Activity.RESULT_OK, resultIntent); finish();
but after that the method shutdown() of RosActivity is getting called closing the application.
Without RosActivity my code works correctly and the only difference is that I added super.onActivityResult(requestCode,resultCode,data); otherwise init(NodeMainExecutor nodeMainExecutor) is not getting called after MasterChooser activity.
Originally posted by eminemm on ROS Answers with karma: 16 on 2018-09-18
Post score: 0