Event Simulator
I use JDE4.5.0 and Simulator 8120. I use a simple code to make an event logging. Is it possible for me to see what events are recorded by my application.
Please note that I'm using a simulator, and I do not have a device.
Thank you
-FH
On the device, press the combination of keys
On the keyboard of your PC, press the
Tags: BlackBerry Developers
Similar Questions
-
Mouse events do not work on a button in a panel ran into a DLL
Hello.
I have a DLL that loads a Panel.
Since it is a DLL I can't do the RunUserInterface() function because the DLL would be stuck waiting for the events of Panel.
I don't the LoadPanel().
When I click with the mouse on one of the buttons, pushing it to the bottom of the event (simulating the button) doesn't happen and the recall does not work.
But if I press the tab key until the update reached the button and press ENTER, the reminder of the button is executed.
An even more interesting aspect is that this happens when I call the DLL TestStand, but on a request from my friends that calls the DLL just for debugging, all works well.
How can I activate mouse events?
Thanks for your help.
Hi Daniel,.
In order to exploit a CVI panel correctly, you must call RunUserInterface, ProcessSystemEvents or GetUserEvent to launch the user interface correctly, and you must call these functions the same in this thread that created the group. If you do not call one of these functions, some things may work, but others, specifically for mouse clicks, will not be. You can not count on TestStand calling these functions. The likely reason why your user interface works when you call into a CVI program is because this program CVI is probably calling one of these functions, while TestStand is not.
If you are unable to wait inside the DLL function after the panel display, then you need to rethink your application. You can watch the creation of a dedicated thread within your DLL that displays the user interface and performs then the event treatment indefinitely, allowing the thread that called the DLL to return immediately. Another alternative would be to have the same thread TestStand to call another function in the DLL several times, on a timer, which would do nothing more than calling ProcessSystemEvents, and then return.
This does not explain problem ebalci, since it dealt with events already in the UI thread (Similarly, built-in popup, such as MessagePopup functions, treat their own events). It seems as if these problems were caused by the sons of communication the hunger UI thread and not allowing it run. But I don't know why this would happen.
Luis
-
Can I use the public APIs of BlackBerry for automation of the tests on the Simulator?
Hello
I'm developing a framework of automation with BlackBerry API public.
Is it possible to test it against the custom application and 'Core BlackBerry Applications,' for example, mail, calendar...?
With the help of API net.rim.device.api.ui.Keypad. * can manipulate the keyboard on a simulator, is that correct?
Thank you!
You can use the EventInjector API for input (keyboard, trackpad and touchscreen) events Simulator to interact with built-in applications. It will work in the Simulator and the real device.
If you are looking just to automate something in the Simulator, you can use the BlackBerry Simulator controller. It is a command-line tool that enables script steps in the Simulator. For more information look in the help on the BlackBerry smartphone Simulator menu.
-
GoodCitizen example Orientation events in Simulator v1
good, someone at - it actually get GoodCitizen to work with landscape/portrait changes in the Simulator?
first of all, I had to add '
true '.at the helm - descriptor.xml to get even the events of the direction received by the app.
not a promising start for an application 'example '.
If you start the app in landscape mode, then perform an angular upsweep of the lower right
It rotates, but creates a small greyish window on the bottom of the screen and you do not
See the cube rotating.
If you re-coup from lower right, that he returned to landscape mode and things/cube work once again.
If you start the application in portrait mode, the screen is totally black, no small greyish window even.
a blow to turn you receives in a mode of work beautiful landscape.
I put a fprintf (stderr, "surface_width = %d, height=%d\n"...)
in the function resize() and regardless of orientation you * always * get a surface width
of 1024 and a height of 600. It seems wrong to.
Thus, anyone actually get this GoodCitizen be good with orientation in the simulator of the v1?
Good afternoon dnp.
A few notes on your desktop.
1. you seem to have a fairly old version of things. Please go to this URL and download the latest SDK and Simulator
https://bdsc.webapps.BlackBerry.com/native/download/
Your Simulator should be 2.0.0.7971 (BlackBerryPlayBookSimulator-Installer-2.0.0-7971-Win-201202221232.exe) and SDk should be thus 7971 (installer-bbndk-2.0.0-win32-7971-201202171813-201202181253.exe installer).
2. I suppose that you created a GoodCitizen project in the IDE. I ran a quick test like myself and noticed that bar - descriptor.xml has no parameters of a good
when a project is created through FDI or downloaded here: https://bdsc.webapps.BlackBerry.com/native/sampleapps
Yes, thank you very much for this bring to my attention. I contacted the team that is responsible for the maintenance of these places and they will be resolved short of time.
For later use, there are a github repo that has all the native samples. It has all flags necessary bar-descriptor (that this plug in Board is maintained by authors of the actual sample)
https://github.com/BlackBerry/NDK-samples/tree/master/GoodCitizen
For example, to quickly sum things - update your sdk and Simulator, get the GoodCitizen correct out of the github and things will work. Meanwhile, let's fix the IDE samples and devportal.
And let me know if you have problems with this.
-
EventLogger events does not appear in the event log Simulator
So, I was more than a little frustrated with debugging Widget applications and decided to help me a bit.
I've created a Widget extension that connects to System.out and the EventLogger BB using:
Logger.Java:
public class Logger {}
public static final String APP_NAME = "AppName";
public static final long GUID = 0xb50dd37e31148effL;public static enableLogging() Sub {}
If (EventLogger.register (GUID, APP_NAME, EventLogger.VIEWER_STRING)) {}
out ("recorder active.");
}
else {}
("EventLogger record has failed.");
}
}/**
* Prints System.out and event log (if enabled).
*/
public static {Sub out (String msg)
String message = formatMessage (msg);
System.out.println (message);
log (message);
}/**
* Prints in the journal of the events with the ALWAYS_LOG level.
*/
Public Shared Sub log (String msg) {}
logEvent (msg, EventLogger.ALWAYS_LOG);
}private public static Sub logEvent (String msg, int level) {}
If (EventLogger.logEvent (GUID, msg.getBytes ())) {}
System.out.println ("EventLogger.logEvent succeeded.");
}
else {}
System.out.println ("EventLogger.logEvent failed.");
}
}
...
}The Widget extension works. I can not even log JavaScript stuff :
somewhere in file.js:
Logger.log ("it is JavaScript!");
as seen by the Eclipse debug console:
AppName [2010-09-24 12:01:33.609]: active recorder.
EventLogger.logEvent succeeded.
AppName [2010-09-24 12:01:33.625]: it's JavaScript!
EventLogger.logEvent succeeded.RIDDLE ME THIS: WHY are the messages NOT sent to the event log Simulator! (9550 or 9800 > tools > Show Event Log does not show my posts.)
My frustration with BB Monte.
-----
Windows XP 32-bit
Install Eclipse Version: 3.5.2 version identifier: M20100211-1343
Version plugin Web blackBerry: 2.0.0.201003191451 - 33
BlackBerry Java plug-in Version: 1.1.2.201004161203 - 16
BlackBerry Java SDK Version: 5.0.0.25
BlackBerry Widget SDK Version: 1.0.0.201003191451 - 1266.0.0.141 blackBerry SmartPhone Simulator
As a new BB developer, imagine my surprise when I discovered that the API of EventLogger BB and the BB Simulator event log were completely foreign.
It's like they're really trying to confuse us.
-
To access the logs of events outside the Simulator Simulator
We must be able to access a text copy of the Simulator event outside the Simulator logs.
The goal is to have a tester to be able to send logs of the Simulator to a developer when they run into a problem with the application.
Does anyone know how to do this?
In the Simulator: simulate-> USB cable connected
On the command line: JavaLoader-u eventlog > simulator.log
-
How to get to the event log in the simulator of blackberry 9800
Can someone tell me how I could see the event log in the blackberry Simulator
Plugin Eclipse - 3.5
Version BlackBerry java sdk - 6.0.0.29
Simulator model - 9800
There is an option in tools - see the event log, but it shows
0:08:13.659: LED: off
0:08:16.862: LED: on (0x003f0000)
0:08:17.034: LED: off
0:08:20.112: LED: on (0x003f0000)
0:08:20.284: LED: off
0:08:23.487: LED: on (0x003f0000)
0:08:23.658: LED: offHelp me??
Well, I just shot to the top of my Simulator of 9800 and it worked perfectly.
Hold down the ALT key enter L, G, then L, then G
Here, to the event log
-
4.7 Simulator handles touch events
Hello
IM using simultor 4.7 to dev app in the storm, I don't have the real device, im bit confused if the 4.7 simultor manages the key event in the Simulator he tells right-click for touch, but he does not meet something. This means that I have to use the device for testing to the touch
guys please add your comments
Thank you
sujithRavindran
comment more!
-
Get on touch event BB10 Simulator
IM studying BB10 Webworks. For exl I have this:
How can I get the event when I touch a div? It's ok when working with web by onclick but with Simulator, I do not know how to get the key events. Can someone help out me, tks so much
Here is an example page that allows to understand how touch events:
http://BlackBerry.github.IO/WebWorks-samples/kitchenSink/HTML/browser/touch.html
On the BlackBerry 10 Simulator, you should expect to see the TouchStart, TouchMove events and touchstart SHOOTING when you interact with the content of the page with the mouse (Note: will also fire the click event). Make sure that you are listening and managing events of button correctly.
-
Event Swipe works in the Simulator, but not on the device
I'm using panels on my 9900 and I have 4 panels that the user will slide back and forth similar functioning BB app world, changing the summary of comments on signs etc..
My expection who was up and down for scanning of touch screen functions and the touchpad has the same function by default, that is to the left and right slide on the screen should also be identical to forehand and left on the block to tack. But it does nothing for the panels when you use the trackpad.
So I replace NavigationMovement and and can see the touchscreen and the track pad to generate a NavigationMovement event with +/-x according to the direction slide. So I'm first puzzled why hit swiping the trackpad on the left and right triggers not the same behavior by hitting swiping left and right on the touch screen.
Accept that as a limitation of the API, I added my own features to NavigationMovement to inject a key event when user left or right on the trackpad moves. As follows:
EventInjector.TouchEvent [] moveEvents = new EventInjector.TouchEvent [7];
moveEvents [0] = new EventInjector.TouchEvent (TouchEvent.MOVE, 420, -1, -1, 60-1);
moveEvents [1] = new EventInjector.TouchEvent (TouchEvent.MOVE, 360, 60,-1, -1, -1);
moveEvents [2] = new EventInjector.TouchEvent (TouchEvent.MOVE, 300, 60,-1, -1, -1);
moveEvents [3] = new EventInjector.TouchEvent (TouchEvent.MOVE, 240, 60,-1, -1, -1);
moveEvents [4] = new EventInjector.TouchEvent (TouchEvent.MOVE, 180, 60,-1, -1, -1);
moveEvents [5] = new EventInjector.TouchEvent (TouchEvent.MOVE, 120, 60,-1, -1, -1);
moveEvents [6] = new EventInjector.TouchEvent (TouchEvent.MOVE, 60, 60,-1, -1, -1);
EventInjector.TouchEvent.injectSwipeGesture (480, 60, moveEvents);It works perfectly in the Simulator, but on the device, there is no movement at all. So I thought that maybe the touchpad on the Simulator is more sensitive than on the real device, so I added a menu item to perform the injection above. Again, this works perfectly on the Simulator, but nothing on the device.
Has anyone tried this brain left and just before the injection? Up and down the injection works perfectly on the device.
Have you enabled event injection in request permission settings for your application? It is disabled by default. You can do so by going to Options-> Application, select your application and click on change permissions. You can also request these permissions programmatically using the class ApplicationPermission.
-
How to test the change of direction on the Simulator event?
There is an example of change orientation Guide 0.92 development event.
I add some codes for my application to deal with this event, but I don't know how to test it.
I find that the return value of Accelerometer.isSupported on the device Simulator is true and simulator of funds, the value is false. But two of them cannot Simulator such an event.
I know that you can test on IPhone simulator, use of change of direction "Command" + arrow keys.
Can anyone help?
Thank you.
To test or change the orientation of the Simulator make sure that your using the last image of Simulator, then slide upward from the bottom right. (Not of the bezel, instead of part of the screen visible)
-
Signature of the problem:
Problem event name: BlueScreen
OS version: 6.1.7600.2.0.0.768.3
Locale ID: 1033More information about the problem:
BCCode: d1
BCP1: FFFFF80003BA6F4A
BCP2: 0000000000000002
BCP3: 0000000000000008
BCP4: FFFFF80003BA6F4A
OS version: 6_1_7600
Service Pack: 0_0
Product: 768_1Files helping to describe the problem:
C:\Windows\Minidump\061410-12448-01.dmp
C:\Users\Joseph\AppData\Local\Temp\WER-21777-0.SysData.XMLRead our privacy statement online:
http://go.Microsoft.com/fwlink/?LinkId=104...MP;clcid=0x0409If the online privacy statement is not available, please read our offline privacy statement:
C:\Windows\system32\en-US\erofflps.txtJoseph BlairSystem Specs:
Mobo: Asus P6x58d Premium
Processor: Refrigerated by an Intel i7 980 x (4.5 oc) liquid
6 GB of DD3 RAM
Intel SSD boot drive 40 GB W7 Home
2 x 300 GB WD Velociraptor (dedicated FSX drive)
HIS ATI Radeon 5870 GPU (oc of factory)
PSU Corsair TX950W (7 fans)
NZXT fan controller
Corsair 800 d caseHi Joseph,.
(a) when exactly you get this error message?
(b) was your game works well before?
Error messages on blue screen are normally related to the material, the following steps are worth a try:
Step 1: Disconnect all external devices (printers, scanner, USB(universal serial bus) readers, etc...) Except the keyboard and mouse, then do a test
Step 2: Put the computer to clean and test start
Follow step 1 in the link below,
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Important: n ' forget not the computer to start normal follow step 7 in the link.
If the problem persists, please download the dump on Sky Drive file and share the link with us for analysis
Available at the location file
C:\Windows\Minidump\061410-12448-01.dmp
You might want to know
How read partial memory dump files that Windows creates for debugging
http://support.Microsoft.com/kb/315263
Thank you, and in what concerns:
Ajay K
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think.
-
Error when inserting the event calendar (on Simulator)
Hello
I tried to run the example of pimcalendar (from GitHub WebWorks examples) on Alpha of Dev Simulator, but I got the following error:
Need error cannot find usr/lib/webplatform/plugins/next/libpimcalendar.so library is not found
I have the last Simulator and installed latest SDK WebWorks
Is this a known issue with the Simulator? Or is the example, which does not work properly?
I faced the same problem.
All packaging the application through corrugation Simulator, make sure that in the BUILD-> TARGET SETTINGS is set to the SIMULATOR.
Worked for me.
-
my world event working on the Simulator, but not on the device
Hi guys,.
I'm using BB bold 9000. I have attached directly to the device and debugging. I'm getting "background switch detected for myapp (261) that does NOT have the tunnels open - defocus is NOT called" on the device debugging. but it works fine on the Simulator (my ultimate task is slaughtering an application from another application) any idea?
Thank you
Thank you guys, it's worked.
-
Hello everyone.
I downloaded the example webwork "apiDemo.zip." I have compiled and deployed correctly, but when I run the work of doesn´t webwork.
The webwork is very simple, just a single button and when the button is pressed, it shows and alert message.
Someone has a problem? How to fix?
Thank you, best regards.
I Don t know how, but now the code works properly.
(Maybe a javascript error).
Thank you.
Maybe you are looking for
-
Firefox still block Adobe Flashplayer?
I uninstalled my Adobe Flashplayer last month after that Mozilla has blocked. Now has been released by Mozilla?Thank you.
-
I want to use the menu bookmarks menu drop down to export my favorites, but the selection "organize bookmarks" is not there.
-
Fuzzy importing video to iPhone
I took some pictures of super-slo-mo 240 fps in my iPhone 6. I would like to import it and manipulate the FCPX (latest version). I imported the media, then created a new project, with the video properties "defined according to first clip." Then I did
-
I received an error message when I try publishing the fix KB-977346
I received an error message when I try publishing the fix KB-977346for i386.I use WIndows7 professional.The Message is "Das ist nicht fur Ihren update computer use. Please help me Special thanks! Andrew G.
-
PowerVault MD3000i - HDD Guasto [DS]
Buongiorno, If line gentilmente sostituzione di a guasto 600Go SAS 6Gbps 15 k 3.5 "HDD PowerVault MD3000i NAS - disco fans parte di a RAID 5 for the fault. Macchina fuori co. 5s information by intervento fuori co. Grazie.