Work of Auditors in the Simulator but not actually "BOLD"
Hey - if anyone knows how to get a "BOLD" handset to allow listeners (PhoneListener, KeyListener, OutboundMessageListener) I would appreciate it. My app uses listeners and works very well in the Simulator, but only sporadically on the actual handset. Does anyone know how it works?
See you soon,.
Justin Dutoit
I think you need to post a snippet of a listener of non-working, if you want to help more with this.
Tags: BlackBerry Developers
Similar Questions
-
GPS works on the Simulator, but not on phone
Hello
I created a simple application that gets the location of the device's GPS. The app works perfectly on the Simulator, but I have no GPS updates on the phone. I've been in options-> device-> Location.Settings on the phone and can see the GPS updates are coming through. But the app says there is no valid received GPS.
I tried it on BlackBerry 9800... All I get on the phone is 'pending GPS update', that my app is displayed if no valid GPS don't trouble is received.
Thanks in advance.
Kevin
C criteria = newCriteria();
c.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);
c.setVerticalAccuracy (Criteria.NO_REQUIREMENT);
c.setCostAllowed (true);
c.setPreferredPowerConsumption (Criteria.POWER_USAGE_HIGH);
LocationProvider lp;
Try
{
LP = LocationProvider.getInstance (c);
if (lp! = null)
{
lp.getLocation (timeout);
lp.setLocationListener (newMyLocationListener(),-1, 1, 1);
}
on the other
{
Dialog.Alert ("sorry - your phone does not support GPS");
}
}
catch (Exception e)
{
System.
Err.println (try ());
}
}
private class MyLocationListener implementsLocationListener
{
public voidlocationUpdated (LocationProvider provider, a place)
{
if (location! = null& location.isValid ())
{
QualifiedCoordinates qc = location.getQualifiedCoordinates ();
Try
{
Lat string = Double.toString (qc.getLatitude ());
String long = Double.toString (qc.getLongitude ());
UpdateScreen ('place of registration successfully');
}
on the other
{
UpdateScreen (' Failed to day location ');
}
}
catch (Exception e)
{
}
}
on the other
{
UpdateScreen ("waiting for GPS update");
}
}
public void providerStateChanged (LocationProvider provider, intnewState)
{
TODO: If the provider has been disabled, then disable the reporting
}
}
Try the examples of programs that you can find here:
http://supportforums.BlackBerry.com/T5/Java-development/BBM-shareContent/m-p/1796237#M203486
or here:
http://supportforums.BlackBerry.com/T5/Java-development/simple-location-API/Ta-p/1145951
See if these work on the unit. If they do, look at the code listed and compare with yours.
-
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.
-
Can deploy app in the Simulator, but not to the device
Sorry about this newbie question, but how is it that a simple HelloWorld application compiled in Eclipse runs just fine on the Simulator, but cannot be installed on a 8320 Curve by the Blackberry Desktop Software?
I use the latest version at all. The message returned by the desktop software is:
! There was an error importing files.
No additional applications can be found. Your file can
contain applications that already exist in the list of applications,
are not compatible for your device, or errors.However, I am able to deploy the application on the handset using the command line tool:
C:\Eclipse\plugins\net.rim.ejde\vmTools\JavaLoader.exe -usb load \workspace\HelloTest\deliverables\Standard\5.0.0\HelloTest.jad
This installs the application, which then runs correctly on the device. I can then reload the list of app on the Blackberry Desktop Software tool and it shows HelloTest, but under the properties of the Application-> dependencies it says:
"Application not available (net_rim_cldc).
It seems that some dependence crept in the generation of the application and that confuses the desktop tool. The curve is running 4.5 OS.
Should I just throw this office tool, or how can I clean the application so that it installs correctly? Obviously, this is just foreplay before building a much broader application, and I wish I had these little glitches will hamper ASASP.
Thanks for any help!
You should be able to download a plugin 4.5 on the site to update. Go to "help > install new software" to open the screen of software available. If you have not yet done so, add the updated BlackBerry site to your Eclipse configuration:
- Click on "available software Sites.
- Click on the button 'Add '.
- Enter a name such as 'BlackBerry update location' and set the location http://www.blackberry.com/go/eclipseUpdate/3.5/java
- Click OK, then OK again to return to the screen of the software available
The 'working with' menu drop-down, select the location of BlackBerry Update (or whatever you named it). Expand the BlackBerry Java plug-in category and you should be able to select an appropriate plug-in version.
-
image in SVG shows it on the Simulator, but not on the device
Hi all
I put the
element in an SVG file with an image that I pick up store or the SD card. I can see the image set on the Simulator, but am not able to see it on the device. Here is the code snippet I definition of the element in the image:
SVGElement "newelement" = (SVGElement) _document.createElementNS (SVG_NAMESPACE_URI, "image");
newElement.setTraitNS (XLINK_NAMESPACE_URI, "href", dittos);
newElement.setFloatTrait ("x", 0);
newElement.setFloatTrait ("y", 0);
newElement.setFloatTrait ("width", Display.getWidth ());
newElement.setFloatTrait ("height", Display.getHeight ());
_svg. AppendChild (newelement);
Invalidate();Thanks in advance.
~ Shri
It was with the size of the Image. Too big a picture and the device wont set it to SVG canvas.
If the scale down the image and set the image if you want to set as
in SVG. -
My App works on the Simulator, but not on a handheld
Using the JDE 4.5 with 4.1.2 MDS Simulator
Eclipse with JDE
---
My app works fine on the simulator using MDS.
The application simply pushes a screen and then creates a thread (an object of type LoadScreenThread) that will take an XML file using HTTP. The XML file is parsed and then creates a new screen and it grows by calling (from LoadScreenThread): invokeLater with an executable object what method run() calls anti-pop and the specified UiApplication pushScreen.
I tried various things for the last 10 hours and it still does not work.
For the HTTP connection, because I would use MDS to Internet I added the '; '. deviceside = false' suffix.
Could someone tell me please know why it would work fine on the Simulator (MDS) and not on a portable device?
On the handheld, I see the arrows download flicker. But it drives not only the new screen?
Your device is connected to a MDS (BlackBerry Enterprise Server)?
If it's just your BB private, so it's rather unlikely, and you will very probably connected to BIS. But you have to grant special permissions to RIM using BIS to use other means like the WAP2 gateway.
Take a look at this thread:
http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=29103
It explains basically everything on the sides of the network connectivity to BlackBerry.
-
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.
-
App works on the Simulator, but not on the device
Just try to run the helloworlddemo app compiles fine and works on the Simulator without problem. All I get on the device is an icon of the application that does nothing when clicked.
I had read this might have to do with the version of the JDE is high for the operating system on the device, but I'm running JDE 6.0.0.37 and the operating system on the device is 6.0.0.666
I tried with my own app first, compiled, signed it and get the same result as helloworld, then its certainly some mounted sort of question but I have no idea of what
Thank you
Sheldon
Thought of it - was to set the permission of application so that all 3 items were "allow."
-
OK so as well Hello world and production apps work correctly on the Simulator... I had some advanced api like blackberry.identity but I removed it because he yelled at me for code signing... I removed the advanced permissions but usually always open... I can see the application in the list of downloads, but clicking nothing
I tried with the sample application engines and the same thing... click on the application icon, but nothing happens...
Once again any word on sim and no not use any "features" except the blackberry.ui (on production app)
blackberry 9630 tour
Thanks for your help!
All the BlackBerry Widgets require the signature, even if you are not using a single line of JavaScript.
The software BlackBerry Widget SDK generates the Java code required to create the widget. The display of web content in a Java BrowserField, which requires a signature. Therefore, all the widgets must be signed.
Code signing keys are usually issued within 2 days of the order, but may take up to 10 business days.
-
The screen on the Simulator, but not on the device loads
Hi all
This issue is driving me crazy.
The problem: I added a menu item in the email application. When the user clicks on the menu, I load a pop-up screen and get the entry user, then save it. This works quite well on my Simulator (8310 v4.5). But when I load in my camera (8310 v4.5), is not.
I can't understand where is the problem. Your entries please.
Note: I checked with the record menu item. I added a warning msg before loading of the screen. The alert is displayed, while the screen does not load. (The screen is a separate category in the same menuitem file, I have class instantiaite inside the application menuitem run() method).
Sorry, I was in a hurry, so just wrote a very brief answer. Unusual for me!
Take a look at this:
http://supportforums.BlackBerry.com/T5/Java-development/how-do-I-debug-on-a-live-device/Ta-p/446842
There are other tips on the forum that you will probably find through research, should he not help.
-
Private opens in the Simulator, but not on the device
Hello world
I have a BlackBerry Tour 9630 (4.7.1.61). I'm running the 4.7.0 Simulator in Eclipse.
Does anyone know why my application would open up a private in the Simulator without problem, but the browser does not open on my real device? I get no error on the device, it just goes to the next screen. I confirmed that the internet works on the device, and I don't see why use only the type of browser BIS would be a problem (I also tried BES).
Here is my code:
UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { BrowserSession session = BrowserLocator .createBrowserSession(BrowserLocator.BROWSER_TYPE_BIS); if (session != null) { session.displayPage(loginUrl); } AuthorizeScreen authorizeScreen = new AuthorizeScreen(); UiApplication.getUiApplication().pushScreen(authorizeScreen); UiApplication.getUiApplication().popScreen(OAuthScreen.this); } });
Thank you!
Thanks for your help.
The session was to return null. I was able to reproduce this behavior in the simulator using a different type of browser not supported by the service books. Finally, I removed my own BrowserLocator() class (for the call of a certain browser) and replaced by the BrowserSessionFactory() provided in the JDE samples. I now have the browser on the opening device.
What is the safest Bet, to use the default browser of the device, or use a browser BIS?
Thank you!
-
Rental app run on the Simulator, but not in real device!
Hello
I made a simple application using GPSDemo in JDE, I get altitude, longitude, latitude... I tried in the Simulator (9000) and it worked perfectly.
But when I put it on my BB (bold 9000), I can't get the location information. I've done some tests and I think it's because the location.isValid () return false!
I checked the settings of the BB and the GPS is activated.
Do you know what is the problem? And what can be the solution ?
Thanks for your help and I apologize if my sentences are strange, I'm French and not very versed in English ^^...
Ok! I found the solution! The problem wasn't my code, it came from the camera. I had update (outdoor) GPS data in the advanced options because it was the first time I tried to use it.
And now it works perfectly!
Thank you for all your help
-
Anyone had this problem before? I do a HTTP request and then according to the return add another to my queue and the other repeatedly fails on the Simulator. However, I tried to run on the device and everything worked perfectly. I know this is a pretty vague description, but I was wondering if there was any problem known about. He could make debugging in the simulator that is very difficult in the future.
marchywka, I think it has something to do with the WiFi in the Simulator. It works the first time, but in certain circumstances later fail.
I couldn't understand it, but I decided to not use WiFi when it is the Simulator and use WiFi on the device.
-
works very well on the shell, but not via cron
Hello
the ghettoVCB works pretty well on my vShpere 4.1 Standard Server run from console. My setup looks like this:
vms2backup.conf: listed three VMs to backup
I have a config file for each virtual machine. That looks like this:
VM_BACKUP_VOLUME = / vmfs/volumes/VMBackup
DISK_BACKUP_FORMAT = thin
VM_BACKUP_ROTATION_COUNT = 3
POWER_VM_DOWN_BEFORE_BACKUP = 0
ENABLE_HARD_POWER_OFF = 0
ITER_TO_WAIT_SHUTDOWN = 3
POWER_DOWN_TIMEOUT = 5
ENABLE_COMPRESSION = 0
ADAPTER_FORMAT = ide
VM_SNAPSHOT_MEMORY = 0
VM_SNAPSHOT_QUIESCE = 0
ENABLE_NON_PERSISTENT_NFS = 0
UNMOUNT_NFS = 0
NFS_SERVER = 172.30.0.195
NFS_MOUNT = / nfsshare
NFS_LOCAL_NAME = nfs_storage_backup
NFS_VM_BACKUP_DIR = MyBackups
SNAPSHOT_TIMEOUT = 15
EMAIL_LOG = 1
EMAIL_DEBUG = 1
EMAIL_SERVER = mail.domain.com
EMAIL_SERVER_PORT = 25
[email protected]
[email protected]The NFS part is not necessary.
I start backing up shell like this: /ghettoVCB/ghettoVCB.sh f /ghettoVCB/vms2backup.conf-l /ghettoVCB/backup.log
When from the backup of shell as mentioned above, everything works fine. In the end, I get an autoresponder email.
But now, when I call this script with the same syntax via crontab, only the first two servers when saved and the script stops until the number of rotation shall take effect from the second server. If the third server is not saved and no e-mail is created.
I have no idea until the problem could be. The hard disk is not full.
Any ideas?
Regards Wolfgang
You can proceed as follows, re - run the script via cron but in your crontab entry, have it configured as follows, where you hit an error that is not connected:
/ghettoVCB/ghettoVCB.sh f /ghettoVCB/vms2backup.conf-l /ghettoVCB/backup.log d debug - c /ghettoVCB > /ghettoVCB/ghettoDebug.txt
It will redirect all the outputs generated during the race in /ghettoVCB/ghettoDebug.txt and see if there are errors.
-
Play video works on the Simulator, but not on phone
Hello
I created a simple application that plays a video of Media Card. It works very well and play the video properly on simulators. But when I loaded the app on the phone (BB Bold), it shows just a white screen and no video.
The media file is in the following path on the map:
/ Media Card/BlackBerry/videos/I66.3GP
The path should be:
file:///SDCard/BlackBerry/videos/I66.3gp
OR
file:/// Card/BlackBerry/videos/I66.3GP Media
Any suggestions on how to get it to work on the phone?
class final VideoScreen extends form {}
Private player player;
private VideoControl vc;{VideoScreen()}
try {}Reader = Manager.createPlayer ("file:///SDCard/BlackBerry/videos/I66.3GP");
Player.Realize ();
VC = player.getControl ("VideoControl") (alarm);
vc.initDisplayMode (VideoControl.USE_DIRECT_VIDEO, this);
GUIControl gc;
If ((gc = player.getControl ("GUIControl")) (GUIControl)! = null)
Add ((Field) gc.initDisplayMode (GUIControl.USE_GUI_PRIMITIVE, null));
vc.setDisplayLocation (15, 15);
vc.setDisplaySize (400, 400);
vc.setVisible (true);
Player.Start ();
} catch (Exception e) {}
}
}Problem solved! It turns out that the "IoException: cannot access the media file" is because the BB is hooked up to the computer via USB, apprently Media Card is not available when USB is plugged.
However, when USB is removed, I get this error:
java.lang.IllegalArgumentException: arg must not be null and must be a javax.microedition.lcdui.Canvas
It turns out that the audio/video tutorial of BB is incorrect, initDisplayMode cannot accept "GUIControl", he cannot accept that the canvas. In addition, if we directly on canvas without instantiate, it will be also caused an IllegalArgumentException.
Then, the following code works:
VideoControl vc;
Canvas canvas = new MyCanvas ();
If ((vc = player.getControl ("VideoControl")) (alarm)! = null) {}
vc.initDisplayMode (VideoControl.USE_DIRECT_VIDEO, canvas);
vc.setDisplayLocation (15, 15);
vc.setDisplaySize (400, 400);
vc.setVisible (true);
Player.Start ();
}
While (MyCanvas) is a dummy class that extends from javax.microedition.lcdui.Canvas
Import javax.microedition.lcdui.Canvas;
import net.rim.device.api.ui.Graphics;
MyCanvas class extends Canvas {}
public
public MyCanvas() {}
}
Protected Sub paint (javax.microedition.lcdui.Graphics arg0) {}
/ / TODO Auto-generated method stub
}
}
Maybe you are looking for
-
I'm downloads repeated in my Inbox. I can refeshThunderbird as Firefox without losing my information saved?
-
Hey guys, im the proud owner of a recent acquisition Satellite Pro C650 and im trying to play games on it. I just tried to play Starcraft (original) and the game has come in weird colors, colours all reversed and such.The same thing has happened to a
-
HP envy smart-touch j 15: display vertical line appeared in the Middle
How can I solve vertical line has appeared in the middle and color of windows seems also dimmed
-
wireless connection of losses on the reactivation of vista home Premium 64-bit
My windows Vista Home Premium 64-Bit loss wireless connection on the awakening. I then have to make a stop down and re boot the lap top. Any suggestions/corrections?
-
nothing