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 userLocation extends MapActivity implements LocationListener { /** Called when the activity is first created. */ EditText txted = null; Button btnSimple = null; MapView myMapView = null; MapController mc = null; Drawable defaultMarker = null; GeoPoint p = null; //String coordinates[] = {"51.150", "-2.592"}; double latitude = 51.150, longitude = -2.592; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Creating TextBox displying Lat, Long //String currentLocation = "Lat: " + latitude + " Lng: " + longitude; //txted.setText(currentLocation); // Creating and initializing Map myMapView = (MapView) findViewById(R.id.mapView); p = new GeoPoint((int) (latitude * 1000000), (int) (longitude * 1000000)); myMapView.setSatellite(true); mc = myMapView.getController(); mc.setCenter(p); mc.setZoom(14); // Add a location mark MyLocationOverlay myLocationOverlay = new MyLocationOverlay(); List list = myMapView.getOverlays(); list.add(myLocationOverlay); // Adding zoom controls to Map ZoomControls zoomControls = (ZoomControls) myMapView.getZoomControls(); zoomControls.setLayoutParams(new ViewGroup.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); myMapView.addView(zoomControls); myMapView.displayZoomControls(true); // Getting locationManager and reflecting changes over map if distance travel by // user is greater than 500m from current location. LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000L, 500.0f, this); } /* This method is called when use position will get changed */ public void onLocationChanged(Location location) { if (location != null) { double latitude = location.getLatitude(); double longitude = location.getLongitude(); //String currentLocation = "Lat: " + lat + " Lng: " + lng; // txted.setText(currentLocation); p = new GeoPoint((int) latitude * 1000000, (int) longitude * 1000000); mc.animateTo(p); } } public void onProviderDisabled(String provider) { // required for interface, not used } public void onProviderEnabled(String provider) { // required for interface, not used } public void onStatusChanged(String provider, int status, Bundle extras) { // required for interface, not used } protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } //zoom in and out class MyLocationOverlay extends com.google.android.maps.Overlay { @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); Paint paint = new Paint(); // Converts lat/lng-Point to OUR coordinates on the screen. Point myScreenCoords = new Point(); mapView.getProjection().toPixels(p, myScreenCoords); paint.setStrokeWidth(1); paint.setARGB(255, 255, 255, 255); paint.setStyle(Paint.Style.STROKE); //canvas.drawBitmap(myScreenCoords.x, myScreenCoords.y, paint); canvas.drawText("Here I am...", myScreenCoords.x, myScreenCoords.y, paint); return true; } } }