public boolean rename ( String name , String newName ) { String whereClause = GeoPackageMetadata . COLUMN_NAME + " = ?" ; String [ ] whereArgs = new String [ ] { name } ; ContentValues values = new ContentValues ( ) ; values . put ( GeoPackageMetadata . COLUMN_NAME , newName ) ; int updateCount = db . update ( GeoPackageMetadata . TABLE_NAME , values , whereClause , whereArgs ) ; return updateCount > 0 ; }
Rename the GeoPackage name to the new name