第一:为什么我不能在onQueryTextSubmit中访问this.getApplication()).setQuery(query);?((MyApplication) this.getApplication()).setQuery(null);
searchView.setOnQueryTextListenerHomeActivity.this.getApplication()).setQuery(query);
r
我正在尝试检索一个视图,但它总是返回null,我如何找到它?layout.findViewById(R.id.bg); //where the error is
int resNumber = ((MyApp) this.getApplication()).getResNum();reservation = ((MyApp) this.getApplic