5
片段中的runOnUiThread
我正在尝试将活动转换为片段。上的错误标记runOnUiThread。在过去: GoogleActivityV2来自Activity。类ExecuteTask中的runOnUiThread。类ExecuteTask嵌套在活动上。 (运行确定)现在: GoogleActivityV2来自Fragment。类ExecuteTask中的runOnUiThread。类ExecuteTask嵌套在活动上。(关于runOnUiThread的错误) 这是我的代码 public class GoogleActivityV2 extends SherlockMapFragment implements OnMapClickListener , OnMapLongClickListener , OnCameraChangeListener , TextWatcher { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){ View rootView = inflater.inflate(R.layout.activity_googlev2, container, false); Init(); adapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_dropdown_item_1line); textView = (AutoCompleteTextView) getView().findViewById(R.id.autoCompleteTextView1); return rootView; } public void onCameraChange(CameraPosition …