BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-02-2009, 10:17 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2008
Model: 8800
PIN: N/A
Carrier: O2
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

New KM62256CLP-7 KM62256CLP-7 STATIC RAM, fast shipping from **USA SELLER**
$5.99
New KM62256CLP-7 KM62256CLP-7 STATIC RAM, fast shipping from **USA SELLER** pictureRebuilt Greenlee 7310SB ½”–4” hydraulic slugbuster New case 767 pump 746 ram
$979.0
Rebuilt Greenlee 7310SB ½”–4” hydraulic slugbuster New case 767 pump 746 ram  pictureTelTronics SEBJR Site Event Buffer 2400 BPS 220K RAM
$19.99
TelTronics SEBJR Site Event Buffer 2400 BPS 220K RAM picture1x RFT U256C - 16K Random Accessible Memory RAM - IC 256 CDIP-16
$1.51
1x RFT U256C - 16K Random Accessible Memory RAM - IC 256 CDIP-16 picture1PC New J4208BBBG-GN-F IC SDRAM EDJ4208BBBG-GN-F FBGA 78P DDR3 RAM Flash Memory
$6.9
1PC New J4208BBBG-GN-F IC SDRAM EDJ4208BBBG-GN-F FBGA 78P DDR3 RAM Flash Memory picture






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