How to simulate GPS on blackberry tablet.

How to simulate GPS on blackberry tablet.

I have seen this thread but does not have the relevant information.

Kindly let me know setp by the set procedure.

I guess that this post would be useful... to simulate the GPS close to Charlottesville, WILL

jtegen wrote:

Here's the simulator of GPS functions.  Works very well to work around the fact that the Simulator simulates a GPS and I don't have a PB (yet).  This Simulator is near Charlottesville, Virginia.

package gps{    import flash.events.Event;    import flash.events.GeolocationEvent; import flash.events.TimerEvent;   import flash.sensors.Geolocation; import flash.utils.Timer;

public class GpsPositionDriver{  private var timer        : Timer = new Timer( 2000 );  private var gps_service  : Geolocation = null;  private var last_step    : int = 0;  private var data         : Array = new Array();  private var start_time   : Number = 0;

//////////////////////////////////////////////////////////////////public function GpsPositionDriver( sensor : Geolocation ){ this.gps_service = sensor;    this.timer.addEventListener( TimerEvent.TIMER, Ping );

  var now : Date = new Date();  this.start_time = now.getTime();

  // data   this.data.push( { altitude : 600, heading : 45, hacc : 100, vacc : 100, latitude : 38.020654096686464, longitude : -78.53692074499511, speed : 10 } );    this.data.push( { altitude : 601, heading : 46, hacc : 100, vacc : 100, latitude : 38.02160072090434, longitude : -78.53949566564941, speed : 12 } ); this.data.push( { altitude : 601, heading : 270, hacc : 100, vacc : 100, latitude : 38.022090932211185, longitude : -78.54177017889404, speed : 13 } );   this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.02234448849692, longitude : -78.54357262335205, speed : 15 } );

  this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.02242900706387, longitude : -78.5454179831543, speed : 2 } );  this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.022344488497076, longitude : -78.54835768423462, speed : 3 } );    this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.02227687357351, longitude : -78.55168362341308, speed : 5 } ); this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.02210783599131, longitude : -78.55638285360718, speed : 1.5 } );   this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.02187118272113, longitude : -78.56230517111206, speed : 1 } ); this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.02166833645269, longitude : -78.56691857061767, speed : 5.5 } );   this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.02166833645269, longitude : -78.57022305212402, speed : 5 } ); this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.022006413255085, longitude : -78.57387085638427, speed : 5 } );    this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.02283469482895, longitude : -78.57738991461181, speed : 2.5 } );   this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.02454193955506, longitude : -78.58196039877319, speed : 17 } );    this.data.push( { altitude : 601, heading : 275, hacc : 100, vacc : 100, latitude : 38.0275675527831, longitude : -78.58826895437622, speed : 8 } );  this.data.push( { altitude : 601, heading : 290, hacc : 100, vacc : 100, latitude : 38.029832455209, longitude : -78.59288235388183, speed : 7 } );   this.data.push( { altitude : 601, heading : 300, hacc : 100, vacc : 100, latitude : 38.0320803861371, longitude : -78.59751721105957, speed : 10 } ); this.data.push( { altitude : 601, heading : 25, hacc : 100, vacc : 100, latitude : 38.033009961471976, longitude : -78.59901924810791, speed : 12 } );    this.data.push( { altitude : 601, heading : 30, hacc : 100, vacc : 100, latitude : 38.034598662916025, longitude : -78.6012508460083, speed : 11 } );

}

/////////////////////////////////////////////////////////////public function Start() : void{    this.timer.start();}

/////////////////////////////////////////////////////////////public function Stop() : void{ this.timer.stop();}

/////////////////////////////////////////////////////////////////private function Ping( event : Event ) : void{  var now : Date = new Date();

  var evt : GeolocationEvent = new GeolocationEvent( GeolocationEvent.UPDATE ); evt.altitude           = this.data[this.last_step].altitude;  evt.heading            = this.data[this.last_step].heading;   evt.latitude           = this.data[this.last_step].latitude;  evt.longitude          = this.data[this.last_step].longitude; evt.horizontalAccuracy = this.data[this.last_step].hacc;  evt.verticalAccuracy   = this.data[this.last_step].vacc;  evt.speed              = this.data[this.last_step].speed; evt.timestamp = now.getTime() - this.start_time; // ms from runtime initialized

 this.gps_service.dispatchEvent( evt );

  this.last_step++; if( this.last_step == this.data.length )this.last_step = 0; // reset

    }  }}

Tags: BlackBerry Developers

Similar Questions

  • link on how to install .csj in the BlackBerry Tablet OS SDK for Adobe AIR via a command prompt is broken

    When in the form of help on how to get my installed LSB file, the link behind the "BlackBerry Tablet OS SDK for Adobe AIR via a command prompt" appears to be down.

    someone else?

    Why not to use FB to install the key of LSB

  • BlackBerry - tablet.xml structure

    Is the structure for blackberry - tablet.xml documented somewhere? I thought that's where I should look in if I want to change the default value to the loading screen. Hope someone can shed some light on this.

    Hey ryan,

    You cannot change the appearance of page in any case load yet. his will appear for each load. How ever what you are referring to is the blackberry - tablet.xml and there you can change which category your application icon appears in. here is the link to the page of information about the XML document:

    http://docs.BlackBerry.com/en/developers/deliverables/21877/Add_icon_to_configuration_file_1374808_1...

    This is the structure of the document blackberry - tablet.xml:

    
      
        none
        true
      
      Sample Inc.
      core.internet
      
        your_image.png
      
    
    

    Good luck!

  • How can I register file blackberry

    OK so I packed a swf file into a bar of the file using the command line in a terminal like this:

    blackberrySDK/bin/blackberry-airpackager - package appname.bar - installApp - launchApp appName.xml appName.swf blackberry-tablets-by default - icon.png -device 172.16.26.135

    the last pieces add the app to my Simulator and launch.

    But when I tried to download it on the portal today I got this message

    "Bar is not signed RDK bar isn't signed AUTHOR this bar contains unsigned entries that did not check integrity.

    How author sign it?

    Take a look at this thread: http://forums.adobe.com/message/4250291#4250291

    There is a link to a tutorial that explains step by step:

    http://www.hsharma.com/tutorials/10-easy-steps-to-package-and-sign-air - apps-for-playbook.

    Worked for me... I have now 2 apps in the Appstore Blackberry... ;-)

  • How to disable the App tabs (tablets should) start automatically?

    How to disable the App tabs (tablets should) start automatically?

    because the option [don't load the tabs up to choosing] dose does not work with her, and she keeps starts every time when I restart Firefox.

    Please help me!

    Don't bother, I arrived at the solution of my car, you can do the following:

    Type "subject: config" [without quotes!] in the location Bar (address bar) and press ENTER to display the list of preferences, as shown in the photo #1 in Firefox 17 under Windows 7.

    If you see a page with the warning as pictured #2, this might void your warranty!, click the "I'll be careful, I promise!" button to continue (in fact, there is no guarantee that it is, it's more a joke to ensure that users are aware of what they are about to do). Uncheck the box to avoid the warning in the future.

    Now to the search bar in the image #3 type: tab and search for it

    preference name:
    

    Browser.sessionstore.restore_pinned_tabs_on_demand

    or you can copy directly to the search bar.
    Then, follow the instructions in the photo n ° 3 .

    Just in case where if the photo appears, follow these steps:

    First: Right-click on the name of the preference that we sought.
    Then, click Toggle to change the value from false to true.
    Or, double-click it and it will change.
    Finally, restart Firefox, and you'll notice that they don't automatically load until you click on it.

    That's it, good luck to all. ;-)

    Note: the list of fonts preferences fat is the user changed, and the United Nations-fat is the default setting.

    Warning: change preferences can, in rare circumstances, break Firefox, Thunderbird or Mozilla Suite, or cause strange behavior. Only do if you know what you're doing or trustworthy tips.

    Additional INFORMATION:

    Subject: config is a feature of Mozilla applications which lists application settings (known as preferences) that are read from the profile files prefs.js and user.js and the default application. A lot of these preferences are not present in the preferences or Options dialog box. Using about: config is one of the many methods of changing the preferences and adding the other 'hidden '.

  • How do simulate you a right-click of the mouse on the touchpad?

    How do simulate you a right-click of the mouse on the touchpad?

    You open the Boot Camp Control Panel and put in place the pad to work how you want it to run. I have the lower-right corner of the touch pad as a right click.

  • How to simulate cRIO in labVIEW?

    Hello everyone!

    I m new to labVIEW and I want to simulate cRIO on it. I read all the posts on this issue, but none of them has really solved the problem. In fact, I read the solution given on or developer area titled "how to simulate FPGA targets in labVIEW with the help of the Project Explorer'. However, when I tried to follow the instructions given here, I realized that on the opening "Untitled project" - 'New', my system shows that 'new' as an option "Target Folder" and not "targets and devices." Why is it so? I asked for a few of my friends, but unfortunately they are too new to labVIEW. I, therefore, ask you to help me with this problem. Please answer in a simple language, I understand (a beginner with labVIEW)!

    Thanks a lot for your help!

    Herschelle

    Hi Herschelle,

    LabVIEW FPGA for LabVIEW 2011 SP1.

    Time real LabVIEW LabVIEW 2011 SP1.

    These downloads will give you both of the modules for 30 days free evaluation mode. You can then get in touch with your local branch of National Instruments on 01635-523-545 and buy a license of one of our internal sales engineers. Alternatively, you can also buy the software online through the software product pages.

    Product page for the FPGA Module.

    Product page for the real time Module.

    I hope this helps!

  • How to simulate a right-click in LabVIEW

    I write code in LabVIEW to record the activities of the mouse for example move, click on the mouse and the right click of the mouse to the left.  I'm able to reproduce the movement by dragging and click of a mouse., but the right click of the mouse to the left.  Can someone show me how to simulate a RIGHT mouse click in LabVIEW?  Thank you very much.

    Son

    Have you looked into the case of the structure of the event time-out?

  • How can I sync my Blackberry information to my computer? I use Outlook Express

    How can I sync my Blackberry address book, calendar, etc. on my computer?  I use Outlook Express.  I have to switch to Microsoft Outlook?  How do I do that?

    Hi Pam,.

    I see no reason why you shouldn't be able to synchronize with Outlook Express. I suggest to check on Blackberry forums:
  • Cannot add a bug in the incident handler in the BlackBerry Tablet OS project

    Hello

    I get an exception when you create a project in Flash Builder 4 (flex2/tools/oem/OEMException$ CircularLibraryDependencyException).

    I wanted to add it to the Manager of incidents under the BlackBerry Tablet OS Project (closest to you in the development of the AIR) but I couldn't because a 'Version' is necessary and the only one available in the list is 'unknown '. This field is required, so I can't add the bug

    Thank you

    Fabien

    It's done!

  • BlackBerry Tablet OS Deployment Setup Wizard

    I'm trying to complete the above process, use the latest version of the OS and my Tablet connected using a Wi - Fi connection and recently downloaded files RDK CSJ and COMINCO CSJ. The Wi - Fi connection is recognized, the Tablet is in development Mode and the path to the CSJ files is recognized. I use the LSB PIN and the CSK password provided by RIM earlier for the development in the simulator of the tablet. I get the following signature registration error and Configuration processes - "record key to long-term error." I searched for information on this error without success. You can provide any help would be highly appreciated.

    Terry

    Can you please try saving your CFS files using the signing page of preference (window-> Preferences-> BlackBerry Tablet OS-> signature). There is a bug in the deployment configuration wizard which does not show the entire message of the signature server. Save the preferences page will give you the full error message.

  • BlackBerry tablet java-plug in for eclipse

    is thr all connect java to eclipse for sameway of black berries as smartphones have?

    If yes pls send me the links.

    If no r are these 3 s/ws needs to develop applications for blackberry Tablet? :

    1 adobe Flash Builder 4.6

    2 adobe Air SDK

    3 blackberry Tablet simulators (OS 2.0)

    o if its different?

    PLEASE ANSWER AS SOON AS POSSIBLE... ITS URGENT!

    Not sure exactly what you're asking. You ask if there is an eclipse environment to develop for the PlayBook. If so, do you have FlashBuilder (Adobe) or FDT based on eclipse.

  • The new blackberry - tablet.xml

    Hi all

    I heard with OS 2 and BB 10 soon, blackberry - tablet.xml is now changed to something else.

    So I wanted to know, I can keep blackberry - tablet.xml and add the new also the same extent of file or which may cause a problem with the operating system when it detects 2 files?

    Same format, just rename to blackberry - tablet.xml bar - descriptor.xml

  • BlackBerry tablet OS native sdk, should I use it?

    Hello

    I am an experienced C/C++ developer, but have no experience with BlackBerry.

    I wonder do the research as evidence of the application of the concept on BlackBerry.

    (1) is the native SDK for platform able to target BlackBerry non-tablettes BlackBerry Tablet OS?

    (2) where to find some QAnywhere to the APDU commands Exchange with the jury on SIM card?

    Thank you

    WebWorks is the only supported way to target all phones.

    Another option would be to support a Java application with a base of code designed to target older phones of the BB as the Android player, BB10 taking place.

  • Native SDK for BlackBerry Tablet OS Beta 1

    I'm new to the BlackBerry development environment. I installed "native SDK for BlackBerry Tablet OS Beta 1 and also I have installedBlackBerry PlayBook Simula in VMware Player.» Now, I want to write some code to test it on the 'Simular '. Since this Forum called "Tablet OS SDK for Adobe AIR", my question is: I'm in the right place? Need to install stuff Adobe to launch my application?

    This forum is made for Adobe AIR development. You must use the NDK forum for questions about the NDK.

Maybe you are looking for

  • Mid to GarageBand files on iPad?

    Hi all I bought some from a friend .mid files. I can make them slip into GarageBand for iMac and adjust to my heart's content. Fantastic!  https://youtu.be/SJ-fwOdivVk Is there anyway that I can do the same thing on my iPad (iOS 9.2)? I tried emailin

  • Windows 10 Dolby Home Theater V4 does not

    On my Lenovo Edge 15 (BestBuy exclusive model), I've recently upgraded to Windows 10 and found that the Dolby Home Theater V4 software does not work. I tried to uninstall and reinstall the drivers and software and still cannot program to work. The pr

  • Read file binary 10 bytes at a time

    I want to read a binary file in a specific format. There is a number at the beginning of the file. Which tells us where the data begins. Suppose it is said 3975, so does that mean of data starts to 3975. Then once I saw this place I want to read data

  • XP Pro ser CIP 2, Dell D:IM

    was a workstation to normal computor, just a sign in page, can not start up F12, get retry F1 and F2. being kill disk, all reload them Xp ready.

  • Cannot access the audio settings

    Hey everybody. Today I plugged my headphones in and waited for chip connect disable audio clear more because it's hurting my ears with headphones... He didn't do it, I tried to turn off manually but I couldn't access the audio settings in the music a