blackberry

Play sound in mobile browser?

I want to make myself a web based stop watch for training that I can use on my Blackberry mobile browser. The stopwatch should count 3 minutes, then ring a bell, wait 1 minute, then ring another bell and then repeat. My problem is I can't seem to get sound to work on my blackberry browser. I tried using <embed src="bell.wav"> which wo...

Running push notifications sample

Hi, I am trying to embed push notifications in my application. I have some queries about it... 1) Should we compulsorily register in the following site to implement push notifications??? 2) I am using Eclipse plug in for blackberry. I found a sample called httppushdemo in blackberry api's. In the corresponding folder i found a readme ...

IntelliJ IDEA 9 for BlackBerry Programming

I'm never done any mobile development before, but I'm interested in trying my hand at developing some simple applications for BlackBerry's. I would like to use IntelliJ IDEA to develop the applications. I've tried Googling for a way to set this up, but all I can come up with is people saying that they have to use RIM's JDE for compiling...

Image quality reduces on image resize in blackberry

I am using below code to resize image in blackberry but it resulting into poor quality of image. Please advise on the same. { JPEGEncodedImage encoder = null; encode_image = sizeImage(encode_image, (int)newWidth,(int)newHeight); encoder=JPEGEncodedImage.encode(encode_image.getBitmap(),100); } pub...

navigate one screen to another screen based on time period in blackberry-Eclips

Hi Friends, I am using Blackberry eclipse environment , for blackberry application i am using start up screen with process bar , i am filing progress bar using timer, after process bar 100% completed then need to navigate the screen to another screen, i am checking like this timer.cancel(); if(i>=99) UiApplication.getUiApplication...

Blackberry - System.out.println() using eclipse plugin

Hello All... I am just entered into the Blackberry Arena.. I am using Eclipse Plugin for running my testing application to simulator. So, In my code somewhere I have add System.out.println("Print"); statements, but by debugging or running app to simulator, I couldn't find any log statements printed to eclipse console. Is there anythi...

Do Bitmap.scaleInto() function will work on older version of blackberry actual device

Can anyone tell me that do scaleinto function will work on actual device having older os that 5.0. Bleow is the code. public static Bitmap resizeImage(Bitmap originalImage, int newWidth, int newHeight) { Bitmap newImage = new Bitmap(newWidth, newHeight); originalImage.scaleInto(newImage, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_F...

Blackberry.location API not working correctly

I am experimenting with making Blackberry widgets but having a little trouble. My first trial involves displaying a button which, when clicked, calls a JavaScript function that should alert the phones latitude and longitude. The function looks: function whereAmI() { var latitude = blackberry.location.latitude; var longitude = blac...

Blackberry Code

I have having difficulties protecting my blackberry application persistent data with ControlledAccess object. According to http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/system/PersistentObject.html, I need a PersistentObject, CodeSignKey, and ControlledAccess objects to work. I have everything except one piece: ...

How to delete application data on install and reinstall

How to delete application data on install/reinstall application, so I can have a clean working environment on every reinstall ? I mean how to detect that this application has been reinstalled so I can clean the whole persistent store. Thanks. ...

Credential​s do not exist in Curve 8520 while using wi-fi

Hi all, I have the following exception while i try to login in my application in curve 8520 using wi-fi "Credentials do not exist" same application works before. but suddenly this exception comes. i can access the internet services as well as open webpages using wi-fi. but at the time of login my application "Credentials do not exi...

error issue on the debugging process

In Eclipse®, on the Run menu, click Debug Configurations or Run Configurations. Expand the BlackBerry Simulator item. Perform one of the following tasks: To work with an existing launch configuration, under BlackBerry Simulator, click a launch configuration. To work with a new launch configuration, right-click BlackBerry Simulator, an...

BlackBerry: change message body of HTML Message

By using Api - mesasge.setContent( Object o );, we ca change the message body of blackberry messaging application. But This work when message is plain text, How can we change / update the message body for HTML message programmaticay. message.setContent(object o); does not work for HTML message. Please advice. ...

Blackberry and php webservice

I am creating a BlackBerry client and a PHP web service. 1) I want to send "hello world" from the BlackBerry to the php service. The service will respond with "hello world" 2) The BlackBerry will take that "hello world" from the php service and display it to the user. ...

parsing base64 string in Soap webservice in blackberry gives unknown value

i am parsing SOAP web service in which image is coming in base64 string but when i parse the node by using getnodevalue() method , result shows during debugging is unknown value. in other the same code parse the base64 string and i successfully decoded it.As i saw the image , when parsed in android and i phone it is different image than ...

Blackberry UI tool bar : fields alignment

i am developing custom toolbar manager, but i want to adjust the fields alignment to be centered not aligned to the left , any advice below is the code of toolbar package galaxy.bb.ui.container; import net.rim.device.api.ui.Color; import net.rim.device.api.ui.Graphics; import net.rim.device.api.ui.XYEdges; import net.rim.device.a...

change message body in blackberry of HTML message

By using BlackBerry Api - mesasge.setContent( Object o );, we can change the message body of blackberry messaging application. But This work when message is plain text, How can we change / update the message body for HTML message programmaticay. message.setContent(object o); does not work for HTML message. Please advice ...

Blackberry - possible to find out when a bluetooth speaker is paired with the device?

Hi I tried understanding the use of the bluetooth package available in the SDK starting version 4.0. But I couldn't find anything which would suggest the detection of a bluetooth headset/speakerphone within an application. I want to initiate a method in my app when it pairs with a bluetooth headset. Any ideas how or where I can start i...

Download MMS content on Blackberry

Hi I am relatively new to coding for the blackberry and I need to write a java application that can capture all incoming and outgoing MMS data from a Blackberry device. I have gotten the capturing of outgoing MMS's sorted with the use of A sendListener, but the problem comes with the incoming MMS's. If I use a MessageListener that proc...

Blackberry apps: Native or webapps?

Dear all, I have read the Blackberry documentation and it is possible to push a notification from a webapp. I am planning to create a Blackberry application that compliments to our webapps. But I am still left in the middle whether to develop a webapp or native Blackberry app. I have also look at how a webapp runs on Blackberry browser ...