@Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); if (v.getId() == R.id.searchResult_list) { getMenuInflater().inflate(R.menu.detlist_ctxmenu, menu); } }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.search); format = getContexts().getDateFormat(); initIntent(); initialCriteria(); initialContent(); }