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)
package db.LoginApp; import java.net.URL; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.SAXParserFactory; import org.xml.sax.InputSource; import org.xml.sax.XMLReader; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Point; import android.os.Bundle; import android.view.MotionEvent; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Spinner; import android.widget.Toast; import android.widget.AdapterView.OnItemSelectedListener; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.Overlay; public class ActivitiesActivity extends MapActivity { MapView mapView; MapController mc; WebHandler wh; URL url; XMLReader xr; VenuesXMLHandler venuesHandler; class MapOverlay extends com.google.android.maps.Overlay { private GeoPoint geoPoint; @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); Point screenPts = new Point(); mapView.getProjection().toPixels(geoPoint, screenPts); Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.pushpin); canvas.drawBitmap(bmp, screenPts.x, screenPts.y -50, null); return true; } @Override public boolean onTouchEvent(MotionEvent event, MapView mapView) { //---when user lifts his finger--- if (event.getAction() == 1) { geoPoint = mapView.getProjection().fromPixels( (int) event.getX(), (int) event.getY()); Toast.makeText(getBaseContext(), geoPoint.getLatitudeE6() / 1E6 + "," + geoPoint.getLongitudeE6() /1E6 , Toast.LENGTH_SHORT).show(); } return false; } } /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activities_activity); //Initialization int currentUserId = getIntent().getExtras() == null ? -1 : getIntent().getExtras().getInt("currentUserId"); final int ref_currentUserId = currentUserId; //Header Panel //Middle Panel final Spinner tmpSpinner = (Spinner) findViewById(R.id.activities_spinner); ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_spinner_dropdown_item); ArrayList datasets = new ArrayList(); try { mapView = (MapView) findViewById(R.id.mapView); mc = mapView.getController(); mapView.displayZoomControls(true); List listOfOverlays = mapView.getOverlays(); listOfOverlays.clear(); mapView.invalidate(); url = new URL("http://........../CXA/venueXML.php"); xr = ((SAXParserFactory.newInstance()).newSAXParser()).getXMLReader(); venuesHandler = new VenuesXMLHandler(); xr.setContentHandler(venuesHandler); xr.parse(new InputSource(url.openStream())); datasets = venuesHandler.getVenues(); for (int i = 0; i < datasets.size(); i++) { double lat = datasets.get(i).getLocationY(); double lng = datasets.get(i).getLocationX(); GeoPoint g = new GeoPoint((int) (lat * 1E6), (int) (lng * 1E6)); listOfOverlays.add(new MapOverlay()); adapter.add(datasets.get(i).getVenueName()); } mapView.getController().setZoom(18); } catch (Exception e) { } adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); tmpSpinner.setAdapter(adapter); tmpSpinner.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView arg0, View arg1, int arg2, long arg3) { int selected = tmpSpinner.getSelectedItemPosition(); try { mapView = (MapView) findViewById(R.id.mapView); mapView.refreshDrawableState(); List listOfOverlays = mapView.getOverlays(); listOfOverlays.clear(); WebHandler wh = new WebHandler("http://..../CXA/userXML.php"); URL url = new URL("http://....../CXA/venueXML.php"); XMLReader xr = ((SAXParserFactory.newInstance()).newSAXParser()).getXMLReader(); VenuesXMLHandler venuesHandler = new VenuesXMLHandler(); xr.setContentHandler(venuesHandler); xr.parse(new InputSource(url.openStream())); ArrayList datasets = venuesHandler.getVenues(); Venue venue = datasets.get(selected); double lat = venue.getLocationY(); double lon = venue.getLocationX(); GeoPoint p = new GeoPoint((int) (lat * 1E6), (int) (lon * 1E6)); mapView.getController().animateTo(p); mapView.invalidate(); } catch (Exception e) { } } public void onNothingSelected(AdapterView arg0) { } }); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } }