Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class POIItemizedOverlay extends ItemizedOverlay { SparseArray mOverlays = new SparseArray(); int key = 0; Context mContext; Projection proj; List mapOverlays; OverlayItem overlayItem; MapView view; boolean remove; public POIDatabase db; boolean done; public POIItemizedOverlay(Context context, Drawable defaultMarker, MapView mapView) { super(boundCenterBottom(defaultMarker)); mContext = context; proj = mapView.getProjection(); view = mapView; mapOverlays = mapView.getOverlays(); db = new POIDatabase(mContext); } public void populatePOIs() { db.open(); Cursor c = db.getAllGeoPoints(); clearAll(); if (c.moveToFirst()) { do { GeoPoint d = new GeoPoint(Integer.parseInt(c.getString(2)), Integer.parseInt(c.getString(1))); overlayItem = new OverlayItem(d, c.getString(3), c.getString(4)); this.addOverlay(overlayItem, (Integer.parseInt(c.getString(0))-1)); mapOverlays.add(this); } while (c.moveToNext()); done = true; } setLastFocusedIndex(-1); db.close(); } public void addLocation(GeoPoint p, String title, String desc) { db.open(); if (done == true) { Cursor c = db.getAllGeoPoints(); c.moveToLast(); key = Integer.parseInt(c.getString(0)); } else { key = 0; done = true; } db.insertGeoPoint(p.getLongitudeE6(), p.getLatitudeE6(), title, desc, 1, 1); OverlayItem overlayItem = new OverlayItem(p, title, desc); this.addOverlay(overlayItem, key); mapOverlays.add(this); db.close(); } public void remove() { this.remove = true; } public void addOverlay(OverlayItem overlay, int key) { Log.w("DONE", String.valueOf(done)); mOverlays.put(key, overlay); populate(); view.invalidate(); } public void removeOverlay(int pIndex) { //db.open(); //db.deleteGeoPoint(mOverlays.get(pIndex).getPoint().getLongitudeE6()); //db.close(); //mOverlays.delete(pIndex); System.out.println(pIndex); mOverlays.delete(pIndex); setLastFocusedIndex(-1); //view.invalidate(); } public void clearAll() { db.open(); db.deleteAllGeoPoints(); db.close(); mOverlays.clear(); view.invalidate(); } @Override public boolean onTap(int pIndex) { if (this.remove == true) { removeOverlay(pIndex); Log.w("PINDEX", String.valueOf(pIndex)); this.remove = false; Toast.makeText(mContext, "POI Removed", Toast.LENGTH_SHORT).show(); } else { Toast.makeText(mContext, mOverlays.get(pIndex).getSnippet(), Toast.LENGTH_SHORT).show(); } return false; } @Override protected OverlayItem createItem(int i) { return mOverlays.get(i); } @Override public int size() { // TODO Auto-generated method stub return mOverlays.size(); } }