0
我想重新加载我的活动从自定义选项卡。活动主要包括一个列表视图&如何加载它再。任何片段或示例代码将是有益的。我已经尝试所有的事情corrsponding重新加载一个活动在Android,我想知道关于自定义tab.Thanks。如何从android中的选项卡活动重新加载活动?
listContent = (ListView)findViewById(R.id.contentlist);
mySQLiteAdapter = new SQLAdapter(this);
mySQLiteAdapter.openToWrite();
cursor = mySQLiteAdapter.queueAll();
String[] from = new String[]{SQLAdapter.YMM,SQLAdapter.SS}
int[] to = new int[]{R.id.ymm,R.id.ss};
cursorAdapter =
new SimpleCursorAdapter(this, R.layout.row, cursor, from, to);
listContent.setAdapter(cursorAdapter);
listContent.setOnItemClickListener(listContentOnItemClickListener);
cursorAdapter.getCursor().requery();
cursorAdapter.notifyDataSetChanged();
感谢您的回复,我在上面添加了我的代码,在上面做了这项工作,我需要使其无效。 – Karthik
我试过了,但是应用程序在崩溃之后崩溃了。 – Karthik
调用listContent.invalidateViews() –