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 hackbard.Myservice; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.Timer; import java.util.TimerTask; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import android.app.Service; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.os.IBinder; import android.os.Looper; import android.util.Log; import android.widget.Toast; public class MonitorService extends Service { private Timer timer = new Timer(); public static final String PREFS_NAME = "Myservice"; private LocationManager lm; private LocationListener locationListener; private Location location = null; @Override public IBinder onBind(Intent arg0) { return null; } @Override public void onCreate() { super.onCreate(); initService(); } private void initService() { SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); if(settings.getBoolean("gpsautoupdater", true)){ timer.scheduleAtFixedRate(new TimerTask() { public void run() { updateNotification(); } }, 0, settings.getLong("gpsupdate", 5000)); } } protected void updateNotification() { refresh(); } public void refresh() { try { lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); locationListener = new MyLocationlistener(); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER); } catch (Exception e) { Log.w("INFO", "1: " + e.getMessage()); } String url = "http://test.de/output.php"; Map kvPairs = new HashMap(); kvPairs.put("lon", String.valueOf(location.getLongitude())); kvPairs.put("lat", String.valueOf(location.getLatitude())); SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); kvPairs.put("nick", settings.getString("nick", "anonymus")); try { HTTPPoster.doPost(url, kvPairs); } catch (ClientProtocolException e) { Log.w("INFO", "2: " + e.getMessage()); } catch (IOException e) { Log.w("INFO", "3: " + e.getMessage()); } } private class MyLocationlistener implements LocationListener { public void onLocationChanged(Location loc) { } public void onProviderDisabled(String provider) { } public void onProviderEnabled(String provider) { refresh(); } public void onStatusChanged(String provider, int status, Bundle extras) { } } }