public long getSelectedItemId() {
        ensureList();
        return mGridView.getSelectedItemId();
    }
Get the cursor row ID of the currently selected grid item.
progressfragment/src/com/devspark/progressfragment/ProgressGridFragment.java