傳遞參數的方法
//要跳轉到的Fragment
MapF f=new MapF();
//傳遞的參數
Bundle args = new Bundle();
args.putString("position","1");
f.setArguments(args);
//跳轉
getFragmentManager().beginTransaction().replace(R.id.car_main_fragment, f).commit();
得到參數
getArguments().getString("position")