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 br.cassianotartari; 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 android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.util.Log; import android.widget.Toast; public class Map extends MapActivity { private LocationManager lm; private LocationListener locationListener; private MapView mapView; private MapController mc; private static final String TAG = "Map Test"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locationListener = new MyLocationListener(); lm.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, locationListener); mapView = (MapView) findViewById(R.id.map); mc = mapView.getController(); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } private class MyLocationListener implements LocationListener { public void onLocationChanged(Location loc) { //Called when the location has changed. Log.d(TAG, "===>>> MinhaLocalizacaoListener onLocationChanged"); if (loc != null) { Toast.makeText(getBaseContext(), "Location changed : Lat: " + loc.getLatitude() + " Lng: " + loc.getLongitude(), Toast.LENGTH_SHORT).show(); GeoPoint p = new GeoPoint( (int) (loc.getLatitude() * 1E6), (int) (loc.getLongitude() * 1E6)); mc.animateTo(p); mc.setZoom(16); mapView.invalidate(); } } public void onProviderDisabled(String provider) { //Called when the provider is disabled by the user. Log.d(TAG, "===>>> MyLocationListener onProviderDisabled PROVIDER:"+provider); //Mapa.ehPraAtualizar = false; } public void onProviderEnabled(String provider) { Log.d(TAG, "===>>> MyLocationListener onProviderEnabled PROVIDER:"+provider); //Called when the provider is enabled by the user. } public void onStatusChanged(String provider, int status, Bundle extras) { Log.d(TAG, "===>>> MyLocationListener onStatusChanged STATUS:"+status+" PROVIDER:"+provider); //Called when the provider status changes. } } }