Typical GPS position accuracy is 3-10 meters in average. A position from NETWORK_PROVIDER can be derived from the WiFi or cellular networks which obviously have different accuracy. WiFi position accuracy: 20-70 Cell position: 100-500
You can get some idea about these values by looking at your position on Google map and turning on/off GPS and WiFi. The circle around this position shows error estimation. On Dec 14, 11:55 pm, Danny Schimke <[email protected]> wrote: > Ah ok, I understand. So I'll use GPS indtead of network provider while I am > developing the application. @ip332 Thank you very much! Maybe another > question: how much differs the accurace of the gps to the network provider > (maybe about in meters)? > > Thanks a lot! > > -Danny Schimke > > 2010/12/14 ip332 <[email protected]> > > > > > > > > > You can't simulate position changes in the network on emulator unless > > you use a laptop with WiFi connection. But walking around with laptop > > in hands is not really a simulation either ;) > > > I use GPS provider instead of Network for debugging. > > > On Dec 14, 8:32 am, Danny Schimke <[email protected]> > > wrote: > > > How can I simulate changes in the network location and why does it not > > > changed, but GPS changed? > > > > THX, > > > -Danny Schimke > > > > 2010/12/14 ip332 <[email protected]> > > > > > Because there were no "changes" in the network location. > > > > > On Dec 14, 7:40 am, Danny Schimke <[email protected]> > > > > wrote: > > > > > Hi, > > > > > > I changed LocationManager.NETWORK_PROVIDER to > > > > LocationManager.GPS_PROVIDER > > > > > and now onLocationChanged() is called. But I cant explain why?! I > > > > configured > > > > > the proxy correctly and I am able to call websites from browser and > > load > > > > > Google Map in my application. > > > > > > Anyone know why it does not work? Permission is set in > > AndroidManifest, > > > > so > > > > > this can't be the issue. > > > > > > Thanks a lot! > > > > > -Danny Schimke > > > > > > 2010/12/14 Danny Schimke <[email protected]> > > > > > > > Hi, > > > > > > > I have a Service that will run in Background even if the > > application is > > > > > > closed. I started the service and I can see it in the "running > > > > services" > > > > > > section under application settings. I am using "*geo fix*" to tell > > the > > > > > > emulator location changes. Every time I change the location there > > is an > > > > "OK" > > > > > > e.g.: geo fix -37.0625 95.67706*OK *but onLocationChanged() is > > never > > > > > > called. The same if I tried using DDMS view in eclipse to update > > > > location. I > > > > > > checked the system location preferences and network location is > > enabled > > > > (I > > > > > > only need network application changes, no GPS). Permissions are set > > in > > > > > > AndroidManifest.xml. > > > > > > > I can not figure out why it does not work... here is some code: > > > > > > > public class MyService extends Service { > > > > > > > private static final String TAG = "MyService"; > > > > > > private LocationManager locationMgr; > > > > > > private LocationListener locListener; > > > > > > > // This method is called > > > > > > @Override > > > > > > public void onCreate() { > > > > > > super.onCreate(); > > > > > > Log.d(TAG, "onCreate"); > > > > > > locationMgr = (LocationManager) > > > > getSystemService(Context.LOCATION_SERVICE); > > > > > > locListener = new LocationListener() { > > > > > > // ... > > > > > > // other methods here > > > > > > // ... > > > > > > @Override > > > > > > public void onLocationChanged(Location location) { > > > > > > // never called > > > > > > Log.d(TAG, "onLocationChanged"); > > > > > > // some code here... > > > > > > } > > > > > > }; > > > locationMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, > > > > 0, > > > > > > locListener); > > > > > > } > > > > > > > // This method is called > > > > > > @Override > > > > > > public void onStart(Intent intent, int startId) { > > > > > > super.onStart(intent, startId); > > > > > > Log.d(TAG, "onStart"); > > > > > > Toast.makeText(getApplicationContext(), "Service started > > successfully. > > > > > > Listening in Background for location changes.", > > > > Toast.LENGTH_LONG).show(); > > > > > > } > > > > > > > I started the service from an activity: > > > > > > > serviceIntent = new Intent(this, MyService.class); > > > > > > ... > > > > > > startService(serviceIntent); > > > > > > > Does anybody knows why it does not work? Hope someone can help. > > > > > > Thank you very much in advance! > > > > > > > -Danny Schimke > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to > > [email protected] > > > > To unsubscribe from this group, send email to > > > > [email protected]<android-developers%2Bunsubs > > > > [email protected]><android-developers%2Bunsubs > > [email protected]> > > > > For more options, visit this group at > > > >http://groups.google.com/group/android-developers?hl=en > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%2Bunsubs > > [email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

