return new DeleteAdapter(getInitialNumItems());
params.setStartingSelectionPosition(-1) .setMustFillScreen(false) .setNumItems(1001) .setNumColumns(4) .setItemScreenSizeFactor(0.20) .setVerticalSpacing(20);
if (keyCode == KeyEvent.KEYCODE_DEL) { GridView g = getGridView(); ((DeleteAdapter)g.getAdapter()).deletePosition(g.getSelectedItemPosition()); return true; } else { return super.onKeyDown(keyCode, event); }