BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-02-2009, 10:17 PM   #1
polys
Knows Where the Search Button Is
 
Join Date: Dec 2008
Model: 8800
PIN: N/A
Carrier: O2
Posts: 15
Default setup dummy GPS position on 8800 simulator

Please Login to Remove!

Hello,

I am developing an application using JDE 4.2.1 and have simulator for 8800. How can I setup a dummy GPS position to test my application?

The code that i am using is this

PHP Code:
Criteria criteria = new Criteria();        

criteria.setHorizontalAccuracy(Criteria.NO_REQUIREMENT);
criteria.setVerticalAccuracy(Criteria.NO_REQUIREMENT);
criteria.setCostAllowed(false);                      
criteria.setPreferredPowerConsumption(Criteria.NO_REQUIREMENT);

LocationProvider provider LocationProvider.getInstance(criteria);   
Location location provider.getLocation(-1);
QualifiedCoordinates coordinates location.getQualifiedCoordinates();

int coord_x = (int)coordinates.getLongitude();
int coord_y = (int)coordinates.getLatitude(); 
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Onset Computer Analog/Temp/RH/Light Data Logger MX1104 Onset Computer MX1104 picture

Onset Computer Analog/Temp/RH/Light Data Logger MX1104 Onset Computer MX1104

$261.31



Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog picture

Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog

$422.50



1500 / 1550 Microlink - Used - incl. warranty - shipped within 1 business day picture

1500 / 1550 Microlink - Used - incl. warranty - shipped within 1 business day

$804.00



GIC PC10BD16001D1 Programmable Logic Controller Module, PLC Module 24VDC Relay picture

GIC PC10BD16001D1 Programmable Logic Controller Module, PLC Module 24VDC Relay

$139.24



MEASUREMENT COMPUTING PCI-DDA08/16 8-channel, 16-bit Analog Output Board 48 D IO picture

MEASUREMENT COMPUTING PCI-DDA08/16 8-channel, 16-bit Analog Output Board 48 D IO

$349.99



Schneider PLC TWIDO TM2AMM6HT ANALOGUE I/O MODULE 20mA 24VDC Missing Terminal picture

Schneider PLC TWIDO TM2AMM6HT ANALOGUE I/O MODULE 20mA 24VDC Missing Terminal

$156.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.