private void setcamera(String camtype) {
        curcam = camtype;
        Utils.setpref("defcam", curcam);
        String[] args = camargs.get(curcam);
        if (args == null) args = new String[0];

        MapView mv = ui.mapview;
        if (mv != null) {
            if (curcam.equals("clicktgt")) mv.cam = new MapView.OrigCam2(args);
            else if (curcam.equals("fixedcake")) mv.cam = new MapView.FixedCakeCam(args);
            else {
                try {
                    mv.cam = MapView.camtypes.get(curcam).newInstance();
                } catch (InstantiationException e) {
                } catch (IllegalAccessException e) {
                }
            }
        }
    }