fun execUpdateGeo( context: Context, latitude: Double, longitude: Double, selectedItems: SelectedFiles? ): Int { val where = QueryParameter() setWhereSelectionPaths(where, selectedItems) val values = ContentValues(2) values.put(SQL_COL_LAT, DirectoryFormatter.parseLatLon(latitude)) values.put(SQL_COL_LON, DirectoryFormatter.parseLatLon(longitude)) val resolver: ContentResolver = context.getContentResolver() return resolver.update( SQL_TABLE_EXTERNAL_CONTENT_URI, values, where.toAndroidWhere(), where.toAndroidParameters() ) }
Write geo data ( lat/lon ) media database. < br/ >