aspose file tools*
The moose likes Java Micro Edition and the fly likes Gps accuracy and parameters set up tips? please help out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Gps accuracy and parameters set up tips? please help out" Watch "Gps accuracy and parameters set up tips? please help out" New topic
Author

Gps accuracy and parameters set up tips? please help out

ashwini kalmath
Greenhorn

Joined: Oct 24, 2011
Posts: 25


Hello,

i am building the GPS application(JSR 179). i got one sample application where they set the following parameters as shown below. my question is that on what basis they set the parameters. how to know the values to set in it. plsss help me:-(

AGPSConfiguration config = new AGPSConfiguration();
System.out.println("assign the provider");
config.setDirectListenerMode(false);
config.setHorizontalAccuracy(100);
config.setVerticalAccuracy(100);
config.setPowerProfile(PowerProfile.USAGE_MEDIUM);
config.setPreferredResponseTime(120);
config.setPositionFilteringMode(PositionFilteringMode.DEFAULT);


thanks:-)
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

Questions related to mobile technologies are better suited on the JME forum instead of beginners forum.
Moving thread...


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
ashwini kalmath
Greenhorn

Joined: Oct 24, 2011
Posts: 25
Hello,

Thanks Maneesh:-)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

JSR179 allows a device to have multiple location services. For example, a cell phone will often have a coarse-grained location service based on trilateration of nearby cell phone towers and a fine-grained location service that uses an internal GPS chip.

Trilateration is good for cheap location determination, because as long as a cell phone is "on line", it's already talking to the towers on a continual and periodic basis. However it doesn't work if there are no towers in range (or not enough towers), and the guaranteed precision is only 1 km.

GPS is much more precise and works in places where cell phone service isn't available, but the GPS circuitry consumes so much more power that some phone companies actually made it unavailable to all apps except the built-in emergency dial system (911/999) on many models.

JSR 179 permits basing the choice of which location service to use via abstract decisions about power usage, precision, and so forth. This keeps it from having to know specific details and allow other options, such as adding a third location device via a USB plug-in, for example.

If you need a rough idea of where you are on a continual basis, you should ask for low power, low-resolution. If you need to have a more precise location, as for high-resolution services. It depends on the app.


Customer surveys are for companies who didn't pay proper attention to begin with.
ashwini kalmath
Greenhorn

Joined: Oct 24, 2011
Posts: 25
hello,


i need to build the application of Gps tracker so what will be accurate values to set?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Gps accuracy and parameters set up tips? please help out