To get the location the most simple way is to implement LocationListener.
To use the maps you have to build a location document.
I made myself a static utility class to do this (and invoke the maps app).

I'll post you a sample. I use an own location-class but you can easily replace them with QualifiedCoordinates.

be warned though that the internal gps of the 8800 is quite bad (maybe that was the message the man with the hammer tried to deliver)

1. Buy hammer at local hardware store
2. Place Blackberry on table
3. Let gravity take its course

There's definitely some missing steps in this process.

I assume you intend to smash the BlackBerry with the hammer?
Step 1 and 2 sort of make sense but then the process goes way off course.

Step 3 is just insane. What would gravity have to do with the process?
The table counteracts gravity and is preventing the device from falling to the floor. I suppose you could use the hammer to push the BlackBerry off the edge, but I don't think that's where you were going with your instructions.

If your intention is actually to smash the device with the hammer... then you really aren't using gravity at all, and there's no need to let "gravity take its course."
You'd be applying force to the hammer with your arm in the direction of the BlackBerry causing the hammer to strike to the device. Again, gravity isn't a real factor here, until the little bits of broken device fly off the table and land on the floor. At that point, gravity is "taking its course" however, the damage has already been done so it's not really relevant .

switch "gps-receiver in range" on the simulator.
now go to "GPS location" and define two (or more) locations.
create a route using these locations and "run" the route.
the location provider should now provide you with simulated coordinates

regarding the gravity: if you hold a heavy enough hammer high enough gravity should be sufficient.
kids: don't try this with the simulator!

I'm so interested in the XML format string that Simon has passed as MapsArguments...
Anyone knows where is any documentation about that XML schema?? What others options can I send to Maps Arguments??

Thanks.

Quote:

Originally Posted by simon.hain

To get the location the most simple way is to implement LocationListener.
To use the maps you have to build a location document.
I made myself a static utility class to do this (and invoke the maps app).

I'll post you a sample. I use an own location-class but you can easily replace them with QualifiedCoordinates.

be warned though that the internal gps of the 8800 is quite bad (maybe that was the message the man with the hammer tried to deliver)

switch "gps-receiver in range" on the simulator.
now go to "GPS location" and define two (or more) locations.
create a route using these locations and "run" the route.
the location provider should now provide you with simulated coordinates

This might be a stupid question. How exactly can one switch on "gps-receiver in range" on the simulator? I can see "GPS Location" under "simulate" menu and I can create locations and routes. I can play/stop play route. However there are no impact on the simulator, I am still getting null from "getQualifiedCoordinates()" call. I assume that "gps-receiver in range" switch has been turned on.

I assume you intend to smash the BlackBerry with the hammer?
Step 1 and 2 sort of make sense but then the process goes way off course.

Step 3 is just insane. What would gravity have to do with the process?
The table counteracts gravity and is preventing the device from falling to the floor. I suppose you could use the hammer to push the BlackBerry off the edge, but I don't think that's where you were going with your instructions.

If your intention is actually to smash the device with the hammer... then you really aren't using gravity at all, and there's no need to let "gravity take its course."
You'd be applying force to the hammer with your arm in the direction of the BlackBerry causing the hammer to strike to the device. Again, gravity isn't a real factor here, until the little bits of broken device fly off the table and land on the floor. At that point, gravity is "taking its course" however, the damage has already been done so it's not really relevant .

I dunno... maybe I'm being a little too critical.

This is inline with the digital 1's and 0's asumptions. If the 1's are flatter, they will pass through the chip set faster than the 0's as they are bigger... etc. etc....

This might be a stupid question. How exactly can one switch on "gps-receiver in range" on the simulator? I can see "GPS Location" under "simulate" menu and I can create locations and routes. I can play/stop play route. However there are no impact on the simulator, I am still getting null from "getQualifiedCoordinates()" call. I assume that "gps-receiver in range" switch has been turned on.

TIA for any help!

thats exactly the problem i was experiencing and still havent found a solution to it at the mo - currently put it to the side in order to concentrate on communicating with a server