blackberry

Network IO hangs on BlackBerry OS5

I am having some problems with my network IO code on OS5 of BlackBerry. I keep getting sporadic hangs and eventually TCP timeout exceptions during my IO operations. I am using the 5.0 networking APIs for establishing the connection which works flawlessly every time. The problem is when doing the actual IO. I have a background worker th...

how to wait to get more message body?

Hi all, I have a ViewListener waiting for someone to open a particular email message, when he opens, i'd like to get the full message before passing it off to another function to process it. What i have is the following: while(body.hasMore()){ if(!body.moreRequestSent()){ try { Transport.more((BodyPart) contents...

BlackBerry: Programmatic "Add to contacts"

If I type a phone number into the phone application on my Blackberry (5.0.0) I can hit the menu button, and one of the options is "Add to contacts" which will bring up the add contact screen, with the phone number already populated. I would like to do the same thing in my app - bring up the 'add to contacts' screen and pre-fill it wit...

To develop a website for Blackberry and connecting it to the database

Hello, Can anyone help me out as i want to develop a simple login page(with ID and Password) on the website that can be opened on the blackberry mobiles browser. So, i just want to ask the steps from starting till end, that i should follow? Also, what will be the tools that can be used for web-based applications for mobiles? Also,wha...

Blackberry on ASP.NET Webforms is losing SessionID

We're having trouble with an existing ASP.NET Webforms app. It's an app that has been running successfully for years; we're adding a Mobile section and Blackberry with Javascript enabled is giving us trouble. We have SessionState turned on, with the SessionID stored in a Cookie. The Blackberry device (tested with both 5.0 and 4.6) is ei...

how to check whether a value already exist in a vector saved in memory

Possible Duplicate: how to check whether an element already exists in the array I am developing an app for blackberry, its like a test paper, each time a user clicks start button, 10 questions are being displayed from an xml database which contains 20 questions, then the result is shown in percentage. Now what i want to do is...

Blackberry java app running in background

Hi, I would like to exit the application with 2 different ways: - When key "escape" pressed, the application exit but still run in background. - When the user select "Close" in the menu to close the application totally. This is already working as it is the default behavior. In my MainScreen class, I have overwritten the close() method ...

Blackberry Http Connection times out on image download. Why?

My application loops through about 200 urls that are all jpg images. In the simulator it reads ok, then stores the byte array in persistentStore with no problems. On the device, it gives java.io.IOException: TCP read timed out on basically every image. Every now and then, one gets through. Not even sure how. The image sizes don't give in...

Alter blackberry application title to show unread message count

Some blackberry applications are able to set their title depending on how many messages are unread. Examples are the Gmail and ubertwitter app. Gmail will set the title to "GMail (20)" to indicate there are 20 unread message. This shows up when hovering over the icon on the main blackberry screen, or when viewing the running apps sel...

ObjectChoicefield in blackberry

Hi, I have a objectchoice field with choices as say YES and NO. I want to handle event when the user selects any one of the choices. for example when the user selects YES i want a labelField to be added to the screen. and when No is selected this label should be removed from the screen Please help ...

Converting BLOB data into Images

Hi, I have a sqlite .db file which consists of data in string, int and blob data types. The blob data consists of images. Can anyone tell me how to convert the blob data into images and then display in a list field. Any code snippets or tutorials will be of great help... ...

Read data from Jad file

Hi, I'm working on blackberry device. want to save the server url in jad file and read this URL programtically in my application. how do i do this in blackberry ...

how to add value from an array into a vector

I am trying to store one value at a time from an array into a vector,so its like that the vector should increase its size dynamically.In my app,when we click start button,the value from the array goes to another page,where it is fetched,& then displayed,but wen i am trying to add that value into a vector & save it in persistent memory of...

How can i display a webpage in a BlackBerry Browser field?

i'm developing a aplication for blackberry and i want to display a simple webpage (for example www.google.com). i'm having troubles using the examples on the blackberry developer page, can anyone give me an example that work? i'm using Eclipse and net.rim.device.api.browser.field.* api. my blackberry's device OS is 4.6 ...

POST image on web server problem

Hi Gurus I'm trying to post a jpg image to a web server. I've tested my PHP script at the server and I'm being able to upload an image using a form. Now I'm trying to make a Blackberry application to POST the image to the server using the same script however when I test the Java code, PHP tells me that NOTHING was POSTed, I'm not sure w...

BlackBerry ApplicationMenuItem call to UiApplication

Hello, I have an Application that adds an ApplicationMenuItem to the SMS reader menu. I'm using an Application (not UiApplication) that runs on startup - so it is a background process and doesn't show on the open applications list. When i'm selecting the menu item i've made i want to show a screen, so i'm trying to create a new instance ...

Blackberry - Secure API error on simulator

Today while programming, I suddenly started to get a JVM Error 104 and the except read "Error starting XXXX: Module 'XXXX' attempts to access a secure API". I hadn't gotten them before and I wasn't doing anything too radical. I undid my work to a point where it was previously working and the error continued to show. I am aware that certa...

Debugger that watches jvm running a BlackBerry application on device simulator

I need a debugger that watches jvm running a BlackBerry application on device simulator (the same way as OllyDbg is used to debug Windows applications.) Any recommends? ...

How To Wait A ticker.

This Is The Ticker method I got from StackOver Flow. public void setText(String text) { this.text = text; } public String getText() { return text; } public Ticker(String text) { this.text = text; final int width = Font.getDefault().getAdvance(text); TimerTask timerTask = new TimerTask() { public void run() ...

Shows Access violation error while simulator loads

Hi Guys,i just downloaded JDE 1.1 Plugin for eclipse,and i installed it and while i run the application ,on loading of simulator it shows access violation error.i tried running clean.bat ad i installed the files in Non Windows Directory.but no thing worked and it showed the same error.Any New Suggestions For cleating that error and i use...