SQLiteDatabase db = this.openOrCreateDatabase("SAICoffeeSQL", MODE_PRIVATE, null); Cursor cr = db.rawQuery("select Latitud, Longitud from TB_previos_productor", null); PolygonOptions PG = new PolygonOptions(); while(cr.moveToNext()){ PG.add(new LatLng(Double.valueOf(cr.getString(cr.getColumnIndex("Latitud"))).doubleValue(), Double.valueOf(cr.getString(cr.getColumnIndex("Longitud"))).doubleValue())); } cr.close(); db.close(); PG.fillColor(Color.CYAN).strokeColor(Color.BLUE).strokeWidth(1); Polygon polygon = mMap.addPolygon(PG);SQLiteDatabase db = this.openOrCreateDatabase("SAICoffeeSQL", MODE_PRIVATE, null); Cursor cr = db.rawQuery("select Latitud, Longitud from TB_previos_productor", null); PolygonOptions PG = new PolygonOptions(); while(cr.moveToNext()){ PG.add(new LatLng(Double.valueOf(cr.getString(cr.getColumnIndex("Latitud"))).doubleValue(), Double.valueOf(cr.getString(cr.getColumnIndex("Longitud"))).doubleValue())); } cr.close(); db.close(); PG.fillColor(Color.CYAN).strokeColor(Color.BLUE).strokeWidth(1); Polygon polygon = mMap.addPolygon(PG);