[android-developers] Re: Mock Location Providers in 1.0

2008-10-16 Thread Matthias

Still doesn't work for me. Playing a GPX file from that tramper site,
but my app doesn't seem to receive any location updates;
LocationManager.getLastKnownLocation() always returns null when using
the GPS provider.

I have enabled app permissions for fine grained location access (i.e.
using GPS), so that can't be the problem.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Mock Location Providers in 1.0

2008-10-01 Thread Sidhartha

Hi Cristina,

I could not get the code you have used working for my case.
Could you also share the manifest file?

Cheers,
Sidhartha

On Sep 26, 12:25 pm, Cristina <[EMAIL PROTECTED]> wrote:
> Just one thing I forgot...KML still does not work for me, but GPX and
> Manual work OK...and by now that is enough for me to do some tests...
>
> On Sep 26, 9:19 am, Cristina <[EMAIL PROTECTED]> wrote:
>
>
>
> > Yes, I have just found the problem!
>
> > The problem is the regional configuration, I mean the configuration of
> > the language, date format and so on (Sorry, but I do not know if that
> > is the name in english... but I hope you understand me)
>
> > I am from Spain, so my XP was configured with "es_ES" properties...
> > (for example,locationnumbers was written with "," instead of "."...)
> > I have changed my regional configuration into us_US and nowDDMS
> >locationtools work for me ...
>
> > So the problem is thatDDMStool works only for english (us)
> > configuration...
>
> > On Sep 26, 1:06 am, xtrawurst <[EMAIL PROTECTED]> wrote:
>
> > > Could that issue be solved yet? I could not receive anything fromDDMS
> > > as well.
>
> > > On Sep 25, 9:22 am, Cristina <[EMAIL PROTECTED]> wrote:
>
> > > > I have downloaded some gpx files from this 
> > > > webhttp://tramper.co.nz/?view=browsegpxFiles
>
> > > > So.DDMSlocationtool loads them ok..I am able to se both the points
> > > > and the track...and when I pressed the button "play" it seems that is
> > > > processing the file...but my test application doesnotreceive
> > > > anything.
>
> > > > Ludwig, can you please write in this thread a brief example of a GPX
> > > > file that works for you? Maybe the problem is related with the gpx I
> > > > have downloaded
>
> > > > I include also some of my test code, maybe there is somthing I have
> > > > misssed
>
> > > > By the way, I am running on Windows XP SP2 ...
>
> > > > Thanks in advance
>
> > > > public class LocationTest extends MapActivity implements
> > > > LocationListener {
>
> > > >         private LocationManager mLocationManager= null;
> > > >         private LocationProvider mLocationProvider = null;
> > > >         private MapView mMapView = null;
>
> > > >     /** Called when the activity is first created. */
> > > >     @Override
> > > >     public void onCreate(Bundle savedInstanceState) {
> > > >         super.onCreate(savedInstanceState);
>
> > > >         mLocationManager =
> > > > (LocationManager)getSystemService(Context.LOCATION_SERVICE);
> > > >         Criteria criteria = new Criteria ();
> > > >         criteria.setAccuracy(Criteria.ACCURACY_FINE);
> > > >         List providerIds
> > > > =mLocationManager.getProviders(criteria, true);
> > > >         if (!providerIds.isEmpty()) {
> > > >                 mLocationProvider =
> > > > mLocationManager.getProvider(providerIds.get(0));
> > > >         }
>
> > > >         mMapView = new MapView(this, "tid");
> > > >         mMapView.getController().setZoom(20);
> > > >         setContentView(mMapView);
>
> > > >         MyLocationOverlay myLocationOverlay = new MyLocationOverlay
> > > > (this, mMapView);
> > > >         mMapView.getOverlays().add (myLocationOverlay);
> > > >         myLocationOverlay.enableMyLocation();
>
> > > >         // Para que si me muevo mire constantemente la localizacion
>
> > > > mLocationManager.requestLocationUpdates(mLocationProvider.getName(),
> > > > 0, 0, this);
> > > >     }
>
> > > >     [EMAIL PROTECTED]
> > > >     protected boolean isRouteDisplayed() {
> > > >            return false;
> > > >     }
>
> > > >      public void  onLocationChanged(Locationlocation) {
> > > >             updateView(location);
> > > >      }
>
> > > >      public void  onProviderDisabled(String provider) {
> > > >      }
> > > >      public void  onProviderEnabled(String provider) {
> > > >      }
> > > >      public void  onStatusChanged(String provider, int status, Bundle
> > > > extras) {
> > > >      }
> > > >      private void updateView (Locationlocation) {
> > > >           Double lat =location.getLatitude()*1E6;
> > > >           Double lng =location.getLongitude()*1E6;
> > > >           GeoPoint point = new GeoPoint(lat.intValue(),
> > > > lng.intValue());
> > > >           mMapView.getController().setCenter(point);
> > > >     }
>
> > > > }
>
> > > > On 24 sep, 18:06, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > > > > I donothave a problem playing GPX files fromDDMSand my code continues 
> > > > > to
> > > > > work ok with 1.0.
> > > > > The only change required was to remove the calls to the two methods 
> > > > > you
> > > > > mention when subscribing tolocationupdates.
>
> > > > > (I am running on Vista, just in case this is a platform issue)
>
> > > > > Ludwig
>
> > > > > 2008/9/24 Cristina <[EMAIL PROTECTED]>
>
> > > > > > Hi!
>
> > > > > > I have downloaded SDK 1.0 this morning, so I have tried to migrate
> > > > > > some code I have to this version.
> > > > > > When trying to migrate MockLocationProvider Ifoundthat som

[android-developers] Re: Mock Location Providers in 1.0

2008-09-26 Thread Cristina

Yes, I have just found the problem!

The problem is the regional configuration, I mean the configuration of
the language, date format and so on (Sorry, but I do not know if that
is the name in english... but I hope you understand me)

I am from Spain, so my XP was configured with "es_ES" properties...
(for example, location numbers was written with "," instead of "."...)
I have changed my regional configuration into us_US and now DDMS
location tools work for me ...

So the problem is that DDMS tool works only for english (us)
configuration...



On Sep 26, 1:06 am, xtrawurst <[EMAIL PROTECTED]> wrote:
> Could that issue be solved yet? I could not receive anything from DDMS
> as well.
>
> On Sep 25, 9:22 am, Cristina <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have downloaded some gpx files from this 
> > webhttp://tramper.co.nz/?view=browsegpxFiles
>
> > So. DDMS location tool loads them ok..I am able to se both the points
> > and the track...and when I pressed the button "play" it seems that is
> > processing the file...but my test application doesnotreceive
> > anything.
>
> > Ludwig, can you please write in this thread a brief example of a GPX
> > file that works for you? Maybe the problem is related with the gpx I
> > have downloaded
>
> > I include also some of my test code, maybe there is somthing I have
> > misssed
>
> > By the way, I am running on Windows XP SP2 ...
>
> > Thanks in advance
>
> > public class LocationTest extends MapActivity implements
> > LocationListener {
>
> >         private LocationManager mLocationManager= null;
> >         private LocationProvider mLocationProvider = null;
> >         private MapView mMapView = null;
>
> >     /** Called when the activity is first created. */
> >     @Override
> >     public void onCreate(Bundle savedInstanceState) {
> >         super.onCreate(savedInstanceState);
>
> >         mLocationManager =
> > (LocationManager)getSystemService(Context.LOCATION_SERVICE);
> >         Criteria criteria = new Criteria ();
> >         criteria.setAccuracy(Criteria.ACCURACY_FINE);
> >         List providerIds
> > =mLocationManager.getProviders(criteria, true);
> >         if (!providerIds.isEmpty()) {
> >                 mLocationProvider =
> > mLocationManager.getProvider(providerIds.get(0));
> >         }
>
> >         mMapView = new MapView(this, "tid");
> >         mMapView.getController().setZoom(20);
> >         setContentView(mMapView);
>
> >         MyLocationOverlay myLocationOverlay = new MyLocationOverlay
> > (this, mMapView);
> >         mMapView.getOverlays().add (myLocationOverlay);
> >         myLocationOverlay.enableMyLocation();
>
> >         // Para que si me muevo mire constantemente la localizacion
>
> > mLocationManager.requestLocationUpdates(mLocationProvider.getName(),
> > 0, 0, this);
> >     }
>
> >     [EMAIL PROTECTED]
> >     protected boolean isRouteDisplayed() {
> >            return false;
> >     }
>
> >      public void  onLocationChanged(Location location) {
> >             updateView(location);
> >      }
>
> >      public void  onProviderDisabled(String provider) {
> >      }
> >      public void  onProviderEnabled(String provider) {
> >      }
> >      public void  onStatusChanged(String provider, int status, Bundle
> > extras) {
> >      }
> >      private void updateView (Location location) {
> >           Double lat = location.getLatitude()*1E6;
> >           Double lng = location.getLongitude()*1E6;
> >           GeoPoint point = new GeoPoint(lat.intValue(),
> > lng.intValue());
> >           mMapView.getController().setCenter(point);
> >     }
>
> > }
>
> > On 24 sep, 18:06, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > > I donothave a problem playing GPX files from DDMS and my code continues to
> > > work ok with 1.0.
> > > The only change required was to remove the calls to the two methods you
> > > mention when subscribing to location updates.
>
> > > (I am running on Vista, just in case this is a platform issue)
>
> > > Ludwig
>
> > > 2008/9/24 Cristina <[EMAIL PROTECTED]>
>
> > > > Hi!
>
> > > > I have downloaded SDK 1.0 this morning, so I have tried to migrate
> > > > some code I have to this version.
> > > > When trying to migrate MockLocationProvider Ifoundthat some methods
> > > > have dissapeared from LocationManager:
> > > > setTestProviderEnabled
> > > > addTestProvider
>
> > > > It seems that itnotpossible to create a Mock Provider by code any
> > > > more...
>
> > > > I have also checked DDMS Location controls, but they seem tonotbe
> > > > working either in this version.
> > > > Maybe I am doing something wrong, but I have tried kml and gpx. In
> > > > both cases my kml/gpx files loads ok, but when I click on "play"
> > > > button, my application doesnotreceive the locations.
>
> > > > I have test thegeocommand, and it works...so by the moment I am
> > > > using this, although it is a little hard to write every point in order
> > > > to do tests...
>
> > > > Has anybody managed to make DDMS locations tools to w

[android-developers] Re: Mock Location Providers in 1.0

2008-09-26 Thread Cristina

Just one thing I forgot...KML still does not work for me, but GPX and
Manual work OK...and by now that is enough for me to do some tests...

On Sep 26, 9:19 am, Cristina <[EMAIL PROTECTED]> wrote:
> Yes, I have just found the problem!
>
> The problem is the regional configuration, I mean the configuration of
> the language, date format and so on (Sorry, but I do not know if that
> is the name in english... but I hope you understand me)
>
> I am from Spain, so my XP was configured with "es_ES" properties...
> (for example, location numbers was written with "," instead of "."...)
> I have changed my regional configuration into us_US and now DDMS
> location tools work for me ...
>
> So the problem is that DDMS tool works only for english (us)
> configuration...
>
> On Sep 26, 1:06 am, xtrawurst <[EMAIL PROTECTED]> wrote:
>
>
>
> > Could that issue be solved yet? I could not receive anything from DDMS
> > as well.
>
> > On Sep 25, 9:22 am, Cristina <[EMAIL PROTECTED]> wrote:
>
> > > I have downloaded some gpx files from this 
> > > webhttp://tramper.co.nz/?view=browsegpxFiles
>
> > > So. DDMS location tool loads them ok..I am able to se both the points
> > > and the track...and when I pressed the button "play" it seems that is
> > > processing the file...but my test application doesnotreceive
> > > anything.
>
> > > Ludwig, can you please write in this thread a brief example of a GPX
> > > file that works for you? Maybe the problem is related with the gpx I
> > > have downloaded
>
> > > I include also some of my test code, maybe there is somthing I have
> > > misssed
>
> > > By the way, I am running on Windows XP SP2 ...
>
> > > Thanks in advance
>
> > > public class LocationTest extends MapActivity implements
> > > LocationListener {
>
> > >         private LocationManager mLocationManager= null;
> > >         private LocationProvider mLocationProvider = null;
> > >         private MapView mMapView = null;
>
> > >     /** Called when the activity is first created. */
> > >     @Override
> > >     public void onCreate(Bundle savedInstanceState) {
> > >         super.onCreate(savedInstanceState);
>
> > >         mLocationManager =
> > > (LocationManager)getSystemService(Context.LOCATION_SERVICE);
> > >         Criteria criteria = new Criteria ();
> > >         criteria.setAccuracy(Criteria.ACCURACY_FINE);
> > >         List providerIds
> > > =mLocationManager.getProviders(criteria, true);
> > >         if (!providerIds.isEmpty()) {
> > >                 mLocationProvider =
> > > mLocationManager.getProvider(providerIds.get(0));
> > >         }
>
> > >         mMapView = new MapView(this, "tid");
> > >         mMapView.getController().setZoom(20);
> > >         setContentView(mMapView);
>
> > >         MyLocationOverlay myLocationOverlay = new MyLocationOverlay
> > > (this, mMapView);
> > >         mMapView.getOverlays().add (myLocationOverlay);
> > >         myLocationOverlay.enableMyLocation();
>
> > >         // Para que si me muevo mire constantemente la localizacion
>
> > > mLocationManager.requestLocationUpdates(mLocationProvider.getName(),
> > > 0, 0, this);
> > >     }
>
> > >     [EMAIL PROTECTED]
> > >     protected boolean isRouteDisplayed() {
> > >            return false;
> > >     }
>
> > >      public void  onLocationChanged(Location location) {
> > >             updateView(location);
> > >      }
>
> > >      public void  onProviderDisabled(String provider) {
> > >      }
> > >      public void  onProviderEnabled(String provider) {
> > >      }
> > >      public void  onStatusChanged(String provider, int status, Bundle
> > > extras) {
> > >      }
> > >      private void updateView (Location location) {
> > >           Double lat = location.getLatitude()*1E6;
> > >           Double lng = location.getLongitude()*1E6;
> > >           GeoPoint point = new GeoPoint(lat.intValue(),
> > > lng.intValue());
> > >           mMapView.getController().setCenter(point);
> > >     }
>
> > > }
>
> > > On 24 sep, 18:06, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > > > I donothave a problem playing GPX files from DDMS and my code continues 
> > > > to
> > > > work ok with 1.0.
> > > > The only change required was to remove the calls to the two methods you
> > > > mention when subscribing to location updates.
>
> > > > (I am running on Vista, just in case this is a platform issue)
>
> > > > Ludwig
>
> > > > 2008/9/24 Cristina <[EMAIL PROTECTED]>
>
> > > > > Hi!
>
> > > > > I have downloaded SDK 1.0 this morning, so I have tried to migrate
> > > > > some code I have to this version.
> > > > > When trying to migrate MockLocationProvider Ifoundthat some methods
> > > > > have dissapeared from LocationManager:
> > > > > setTestProviderEnabled
> > > > > addTestProvider
>
> > > > > It seems that itnotpossible to create a Mock Provider by code any
> > > > > more...
>
> > > > > I have also checked DDMS Location controls, but they seem tonotbe
> > > > > working either in this version.
> > > > > Maybe I am doing something wrong

[android-developers] Re: Mock Location Providers in 1.0

2008-09-25 Thread xtrawurst

Could that issue be solved yet? I could not receive anything from DDMS
as well.

On Sep 25, 9:22 am, Cristina <[EMAIL PROTECTED]> wrote:
> I have downloaded some gpx files from this 
> webhttp://tramper.co.nz/?view=browsegpxFiles
>
> So. DDMS location tool loads them ok..I am able to se both the points
> and the track...and when I pressed the button "play" it seems that is
> processing the file...but my test application doesnotreceive
> anything.
>
> Ludwig, can you please write in this thread a brief example of a GPX
> file that works for you? Maybe the problem is related with the gpx I
> have downloaded
>
> I include also some of my test code, maybe there is somthing I have
> misssed
>
> By the way, I am running on Windows XP SP2 ...
>
> Thanks in advance
>
> public class LocationTest extends MapActivity implements
> LocationListener {
>
>         private LocationManager mLocationManager= null;
>         private LocationProvider mLocationProvider = null;
>         private MapView mMapView = null;
>
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>
>         mLocationManager =
> (LocationManager)getSystemService(Context.LOCATION_SERVICE);
>         Criteria criteria = new Criteria ();
>         criteria.setAccuracy(Criteria.ACCURACY_FINE);
>         List providerIds
> =mLocationManager.getProviders(criteria, true);
>         if (!providerIds.isEmpty()) {
>                 mLocationProvider =
> mLocationManager.getProvider(providerIds.get(0));
>         }
>
>         mMapView = new MapView(this, "tid");
>         mMapView.getController().setZoom(20);
>         setContentView(mMapView);
>
>         MyLocationOverlay myLocationOverlay = new MyLocationOverlay
> (this, mMapView);
>         mMapView.getOverlays().add (myLocationOverlay);
>         myLocationOverlay.enableMyLocation();
>
>         // Para que si me muevo mire constantemente la localizacion
>
> mLocationManager.requestLocationUpdates(mLocationProvider.getName(),
> 0, 0, this);
>     }
>
>     [EMAIL PROTECTED]
>     protected boolean isRouteDisplayed() {
>            return false;
>     }
>
>      public void  onLocationChanged(Location location) {
>             updateView(location);
>      }
>
>      public void  onProviderDisabled(String provider) {
>      }
>      public void  onProviderEnabled(String provider) {
>      }
>      public void  onStatusChanged(String provider, int status, Bundle
> extras) {
>      }
>      private void updateView (Location location) {
>           Double lat = location.getLatitude()*1E6;
>           Double lng = location.getLongitude()*1E6;
>           GeoPoint point = new GeoPoint(lat.intValue(),
> lng.intValue());
>           mMapView.getController().setCenter(point);
>     }
>
> }
>
> On 24 sep, 18:06, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > I donothave a problem playing GPX files from DDMS and my code continues to
> > work ok with 1.0.
> > The only change required was to remove the calls to the two methods you
> > mention when subscribing to location updates.
>
> > (I am running on Vista, just in case this is a platform issue)
>
> > Ludwig
>
> > 2008/9/24 Cristina <[EMAIL PROTECTED]>
>
> > > Hi!
>
> > > I have downloaded SDK 1.0 this morning, so I have tried to migrate
> > > some code I have to this version.
> > > When trying to migrate MockLocationProvider Ifoundthat some methods
> > > have dissapeared from LocationManager:
> > > setTestProviderEnabled
> > > addTestProvider
>
> > > It seems that itnotpossible to create a Mock Provider by code any
> > > more...
>
> > > I have also checked DDMS Location controls, but they seem tonotbe
> > > working either in this version.
> > > Maybe I am doing something wrong, but I have tried kml and gpx. In
> > > both cases my kml/gpx files loads ok, but when I click on "play"
> > > button, my application doesnotreceive the locations.
>
> > > I have test thegeocommand, and it works...so by the moment I am
> > > using this, although it is a little hard to write every point in order
> > > to do tests...
>
> > > Has anybody managed to make DDMS locations tools to work in 1.0? Is it
> > > possible to create a mock location provider by code in this version?
> > > Is there any other way to automate this? maybe an script that calls
> > >geoutility?
>
> > > Thanks in advance- Ocultar texto de la cita -
>
> > - Mostrar texto de la cita -
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Mock Location Providers in 1.0

2008-09-25 Thread Cristina

I have downloaded some gpx files from this web
http://tramper.co.nz/?view=browsegpxFiles

So. DDMS location tool loads them ok..I am able to se both the points
and the track...and when I pressed the button "play" it seems that is
processing the file...but my test application does not receive
anything.

Ludwig, can you please write in this thread a brief example of a GPX
file that works for you? Maybe the problem is related with the gpx I
have downloaded

I include also some of my test code, maybe there is somthing I have
misssed

By the way, I am running on Windows XP SP2 ...

Thanks in advance

public class LocationTest extends MapActivity implements
LocationListener {

private LocationManager mLocationManager= null;
private LocationProvider mLocationProvider = null;
private MapView mMapView = null;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

mLocationManager =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);
Criteria criteria = new Criteria ();
criteria.setAccuracy(Criteria.ACCURACY_FINE);
List providerIds
=mLocationManager.getProviders(criteria, true);
if (!providerIds.isEmpty()) {
mLocationProvider =
mLocationManager.getProvider(providerIds.get(0));
}

mMapView = new MapView(this, "tid");
mMapView.getController().setZoom(20);
setContentView(mMapView);

MyLocationOverlay myLocationOverlay = new MyLocationOverlay
(this, mMapView);
mMapView.getOverlays().add (myLocationOverlay);
myLocationOverlay.enableMyLocation();

// Para que si me muevo mire constantemente la localizacion
 
mLocationManager.requestLocationUpdates(mLocationProvider.getName(),
0, 0, this);
}

 @Override
protected boolean isRouteDisplayed() {
   return false;
}

 public void  onLocationChanged(Location location) {
updateView(location);
 }

 public void  onProviderDisabled(String provider) {
 }
 public void  onProviderEnabled(String provider) {
 }
 public void  onStatusChanged(String provider, int status, Bundle
extras) {
 }
 private void updateView (Location location) {
  Double lat = location.getLatitude()*1E6;
  Double lng = location.getLongitude()*1E6;
  GeoPoint point = new GeoPoint(lat.intValue(),
lng.intValue());
  mMapView.getController().setCenter(point);
}
}




On 24 sep, 18:06, Ludwig <[EMAIL PROTECTED]> wrote:
> I do not have a problem playing GPX files from DDMS and my code continues to
> work ok with 1.0.
> The only change required was to remove the calls to the two methods you
> mention when subscribing to location updates.
>
> (I am running on Vista, just in case this is a platform issue)
>
> Ludwig
>
> 2008/9/24 Cristina <[EMAIL PROTECTED]>
>
>
>
>
>
> > Hi!
>
> > I have downloaded SDK 1.0 this morning, so I have tried to migrate
> > some code I have to this version.
> > When trying to migrate MockLocationProvider I found that some methods
> > have dissapeared from LocationManager:
> > setTestProviderEnabled
> > addTestProvider
>
> > It seems that it not possible to create a Mock Provider by code any
> > more...
>
> > I have also checked DDMS Location controls, but they seem to not be
> > working either in this version.
> > Maybe I am doing something wrong, but I have tried kml and gpx. In
> > both cases my kml/gpx files loads ok, but when I click on "play"
> > button, my application does not receive the locations.
>
> > I have test the geo command, and it works...so by the moment I am
> > using this, although it is a little hard to write every point in order
> > to do tests...
>
> > Has anybody managed to make DDMS locations tools to work in 1.0? Is it
> > possible to create a mock location provider by code in this version?
> > Is there any other way to automate this? maybe an script that calls
> > geo utility?
>
> > Thanks in advance- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Mock Location Providers in 1.0

2008-09-24 Thread Ludwig
I do not have a problem playing GPX files from DDMS and my code continues to
work ok with 1.0.
The only change required was to remove the calls to the two methods you
mention when subscribing to location updates.

(I am running on Vista, just in case this is a platform issue)

Ludwig

2008/9/24 Cristina <[EMAIL PROTECTED]>

>
> Hi!
>
> I have downloaded SDK 1.0 this morning, so I have tried to migrate
> some code I have to this version.
> When trying to migrate MockLocationProvider I found that some methods
> have dissapeared from LocationManager:
> setTestProviderEnabled
> addTestProvider
>
> It seems that it not possible to create a Mock Provider by code any
> more...
>
> I have also checked DDMS Location controls, but they seem to not be
> working either in this version.
> Maybe I am doing something wrong, but I have tried kml and gpx. In
> both cases my kml/gpx files loads ok, but when I click on "play"
> button, my application does not receive the locations.
>
> I have test the geo command, and it works...so by the moment I am
> using this, although it is a little hard to write every point in order
> to do tests...
>
> Has anybody managed to make DDMS locations tools to work in 1.0? Is it
> possible to create a mock location provider by code in this version?
> Is there any other way to automate this? maybe an script that calls
> geo utility?
>
>
> Thanks in advance
>
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Mock Location Providers in 1.0

2008-09-24 Thread Reto Meier

Unfortunately I don't have a good answer for you, but we've been
discussing the same question here:
http://groups.google.com/group/android-developers/browse_thread/thread/7005933e731de0f3#


Professonal Android Application Development
http://www.amazon.com/gp/product/0470344717?tag=interventione-20

On Sep 24, 4:22 pm, Cristina <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have downloaded SDK 1.0 this morning, so I have tried to migrate
> some code I have to this version.
> When trying to migrate MockLocationProvider I found that some methods
> have dissapeared from LocationManager:
> setTestProviderEnabled
> addTestProvider
>
> It seems that it not possible to create a Mock Provider by code any
> more...
>
> I have also checked DDMS Location controls, but they seem to not be
> working either in this version.
> Maybe I am doing something wrong, but I have tried kml and gpx. In
> both cases my kml/gpx files loads ok, but when I click on "play"
> button, my application does not receive the locations.
>
> I have test the geo command, and it works...so by the moment I am
> using this, although it is a little hard to write every point in order
> to do tests...
>
> Has anybody managed to make DDMS locations tools to work in 1.0? Is it
> possible to create a mock location provider by code in this version?
> Is there any other way to automate this? maybe an script that calls
> geo utility?
>
> Thanks in advance
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---