Code example for GridView

Methods: getSelectedItemId

0
     * Get the {@link ListAdapter} item ID of the currently selected grid item. 
     *  
     * @return The identifier of the selected {@link GridView} item. 
     */ 
    public long getSelectedItemId() { 
	return mGridView.getSelectedItemId();
    } 
 
    /** 
     * Get the activity's {@link GridView} widget. 
     *  
     * @return The {@link GridView} managed by the current 
     *         {@link GridActionBarActivity} 
     */ 
    public GridView getListView() {
	ensureLayout(); 
	return mGridView;
    } 
 
    /** 
     * Get the {@link ListAdapter} associated with this activity's