Advertisement
Ankhwatcher

numberOfPlaces

Oct 6th, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. public int numberOfPlaces()
  2.     {
  3.         SQLiteDatabase db = getReadableDatabase();
  4.         String[] columns = new String[] { LATITUDE, COLUMN_ID };
  5.         Cursor c =  db.query(PLACE_TABLE_NAME, columns, columns +"IS NOT NULL ", null, null, null, COLUMN_ID);
  6.         return c.getCount();
  7.        
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement