rosjava / android_apps

Applications built on top of the rosjava android libraries.
133 stars 112 forks source link

App crashes on start #45

Open mzc1986 opened 9 years ago

mzc1986 commented 9 years ago

I am connected via wifi with the turtlebot. Enter the robot URI in the app and click connect. And the app crashes.. Anything? turtlebot is running hydro

Thanks

AmitMoran commented 8 years ago

I have the same issue. With one laptop it works fine, with another one it crashes... Did you find a solution?

jubeira commented 6 years ago

Did you have internet in that network? I think the app is doing some post to a remote server in the internet, and if there's no connection it crashes. I will take a look at this.

jubeira commented 6 years ago

@adolescent @AmitMoran this should be solved with #69. I will leave this issue open for a while just in case. Please let me know if you have the chance to try it.

l376571926 commented 2 years ago

I am connected via wifi with the turtlebot. Enter the robot URI in the app and click connect. And the app crashes.. Anything? turtlebot is running hydro

Thanks

ViewControlLayer.java

viewMode = ViewMode.CAMERA; if (context instanceof Activity) { ((Activity) context).runOnUiThread(new Runnable() { @Override public void run() { cameraView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v){ swapViews(); } });

        mapView.setClickable(true);
        cameraView.setClickable(false);
    }
});

} this.robotFrame = (String) params.get("robot_frame", context.getString(R.string.robot_frame)); mapViewGestureAvaiable = false;