Is there a way to get the row count of a GridView for Android API Level 8?
try this:
Math.ceil( (double)gridView.getCount() / (double)gridView.getNumColumns() );