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 com.example.maptest; import android.os.Bundle; import android.view.KeyEvent; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; public class maptest extends MapActivity { private MapView myMapView; private GeoPoint p; //map move increment double MAP_MOVE_INCREMENT = 0.25; //location of statue of liberty int pLat = (int) (40.689213 * 1000000); int pLong = (int) (-74.044558 * 1000000); public void onCreate(Bundle icicle) { super.onCreate(icicle); myMapView = new MapView(this, "YOUR API KEY GOES HERE"); //create the controller and define some initial settings for the view myMapView.getController().setZoom(20); myMapView.setSatellite(true); //move the map mapLocationUpdate(); // Make myMapView the exilicit view of this app setContentView(myMapView); } public boolean onKeyDown(int keyCode, KeyEvent event){ switch (keyCode){ case KeyEvent.KEYCODE_I: myMapView.getController().zoomIn(); //zoom in return true; case KeyEvent.KEYCODE_O: myMapView.getController().zoomOut(); //zoom out return true; case KeyEvent.KEYCODE_S: myMapView.setSatellite(satelliteToggle()); return true; case KeyEvent.KEYCODE_DPAD_UP: mapPan(0);//move north return true; case KeyEvent.KEYCODE_DPAD_DOWN: mapPan(1);//move south return true; case KeyEvent.KEYCODE_DPAD_LEFT: mapPan(2);//move west return true; case KeyEvent.KEYCODE_DPAD_RIGHT: mapPan(3);//move east return true; } return false; } //direction is either 0, 1, 2, 3 relating to N S W E private void mapPan(int direction){ switch(direction){ case 0://north pLat = (int) (p.getLatitudeE6() + (myMapView.getLatitudeSpan()*MAP_MOVE_INCREMENT)); break; case 1://south pLat = (int) (p.getLatitudeE6() - (myMapView.getLatitudeSpan()*MAP_MOVE_INCREMENT)); break; case 2://west pLong = (int) (p.getLongitudeE6() - (myMapView.getLongitudeSpan()*MAP_MOVE_INCREMENT)); break; case 3://east pLong = (int) (p.getLongitudeE6() + (myMapView.getLongitudeSpan()*MAP_MOVE_INCREMENT)); break; } mapLocationUpdate(); } private void mapLocationUpdate(){ p = new GeoPoint (pLat, pLong); myMapView.getController().setCenter(p); //if you prefer animations you can actually use the below line to move the map instead of .setCenter //myMapView.getController().animateTo(p); } private boolean satelliteToggle(){ //if the satellite view is on, this will return false. Oppisite of course if the satellite view is off it will return true if(myMapView.isSatellite()){ return false; } return true; } protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } }