this is a known issue that will be fixed in the next 1.5 SDK release.Sorry
about that.

On Wed, Apr 29, 2009 at 1:10 AM, rob_b...@gmx.net <rob_b...@gmx.net> wrote:

>
> have the same problem! also tried with the r1 version of the new sdk
> 1.5.
> worked on sdk 1.1.
> doesn't matter if I use ddms or telnet. still can just see one or at
> least 2 coordinates displayed in the application.
> need help! thx
>
> On 28 Apr., 15:51, Andreas Frey <a-f...@gmx.de> wrote:
> > Hello,
> >
> > I have a really simple Android Application using a MyLocationOverlay
> > and a LocationManager to determine and show the current position via a
> > Toast.
> >
> > But the geo fix command i submit via telnet does only work the first
> > time i submit it. ALl later tries to update the position do not work.
> >
> > Anybody knows this problem?
> > Any solutiions
> >
> > This is the relevant source code:
> > ---------
> > ..
> >   private void initLocationManager() {
> >                 locManager = (LocationManager) getSystemService
> > (Context.LOCATION_SERVICE);
> >
> >                 locationListener = new LocationListener() {
> >
> >                         public void onLocationChanged(Location location)
> {
> >                                 updatePosition(location);
> >                         }
> >                         public void onProviderDisabled(String arg0) {
> >                         }
> >                         public void onProviderEnabled(String arg0) {
> >                         }
> >                         public void onStatusChanged(String arg0, int
> arg1, Bundle arg2) {
> >                         }
> >                 };
> >
> >
> locManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0,
> > 0,
> >                                 locationListener);
> >         }
> >
> >         private void updatePosition(Location location) {
> >                 Toast t = Toast.makeText(
> >                         this,
> >                         getString(R.string.msgPosition,
> location.getLatitude(),
> > location.getLongitude()),
> >                         Toast.LENGTH_SHORT);
> >                 t.show();
> >
> >                 theMap.getController().animateTo(
> >                                 new GeoPoint(
> >
> (int)(location.getLatitude()*1E6),
> >
> (int)(location.getLongitude()*1E6)));
> >                 theMap.postInvalidate();
> >
> >         }
> > ----------
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to