blackberry-storm

Blackberry Development Tips, Tricks & Gotchas

I'm looking to get into developing software for the Blackberry platform. I know they've got a great IDE plug-in for Eclipse and I've got their Storm simulator running on my laptop, it's fantastic. So, that being said, anyone have any tips, tricks or gotchas to watch out for when using the Blackberry SDK? Anything specific to various mo...

Customized Checkboxes

Hi, I am trying to implement image as checkbox. I have a list with 2 columns and I want to display checbox image on right side, as a third column.On clicking that image ,the image will be changed to a different one. In which way I can do this? Please help. ...... ...

Blackberry Storm Emulator - TouchGesture events not firing, how to get a Swipe to work?

Been playing with the Storm Emulator and the 4.7 JDE, for the life of me I can't figure out how to fire gesture events in the emulator. Below is the touch event code for the RIM sample app EmbeddedMapDemo. It seems straightforward enough, but touchGesture.getEvent() == TouchGesture.SWIPE never seems to register to true. How can I regis...

problem in displaying BitmapFields in HorizontalFieldManager in a row in Blackberry Storm

I had created a HorizontalFieldManager & added BitmapFields in that. In Blackberry Storm, Display.getWidth() is 480. In that I want to use first 450 to add some BitmapFields at LHS of screen which I m creating at runtime & add 2 BitmapFields at start at RHS of Screen. 2 BimapFields which I want to show at start r added in Constructo...

How to set Anti Aliasing in Blackberry Storm?

I m drawing in a bitmap like.. bitmap[i] = new Bitmap(60, 60); Graphics g = new Graphics(bitmap[i]); g.setColor(Color.BLACK); g.drawLine(....); Now how to set Anti-Aliasing on before g.drawLine()? ...

How to handle ButtonField & BitmapField Click (Touch) events in Blackberry Storm?

I have created a ButtonField & a BitmapField like.. public class MyCanvas extends MainScreen implements FieldChangeListener { HorizontalFieldManager hfm; private Bitmap startBitmap; private BitmapField startBitmapField; private ButtonField okButton; MyCanvas() { hfm = new HorizontalFIeldManager(); st...

How to save & delete a Bitmap image in Blackberry Storm?

I have a ready Bitmap image. Now I want to save & delete it. I m doing it like.. FileConnection fconn = (FileConnection)Connector.open("file:///store/home/user/StoredBitmap/"+picIndex+".bmp",Connector.READ_WRITE); if(!fconn.exists()) fconn.create(); OutputStream out = fconn.openOutputStream(); if(im...

BlackBerry Storm AccelerometerListener not being notified on first orientation change

This seems to be a well-known issue right now, but the accepted workaround doesn't seem to be working for us. On the BlackBerry Storm (JDE 4.7, standard set of 4.7+ simulators), the following bit of code registers an AccelerometerListener. The listener does not get called on the first change in device orientation, but does get called on...

Blackberry - how to start my own service at phone boot-up?

I want to start my own service implementation when the phone starts? How to achieve it? ...

Communication Handling using Service in Blackberry 4.5

Hi all, I am developing an app. (like google talk) which at phone boot-up starts a background service which is continuously running. This service interacts with UI (means any request to server is first sent from UI to service & from service to server) & any response is sent to UI through service. What i know to start background service...

Prevent zoom on Blackberry Storm

For web pages that are being viewed in the iPhone, you can add the following meta tag to disable to zoom feature: <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/> Is there something to do the same for the Blackberry Storm? ...

How to iterate through Blackberry Resource fie?

Hi all, How to iterate the keys in a Resource fie (.rrc) in a loop & how do I get the length or the no. of elements in the resource file, I mean the end of the file ? ...

How to access image stored in Blackberry using Bitmap.getBitmapResource() ?

I want to access an image stored in Blackberry, say at location "store/home/user/image.png" . Now can i access this image as, String filePath = "file:///store/home/user/image.png; Bitmap image = Bitmap.getBitmapResource(filePath); BitmapField bitmapField = new BitmapField(image, BitmapField.FOCUSABLE); OR I have to access it as, ...

How to get time format of current TimeZone ?

I m getting current time zone as , String defaultTimeZone = ""+TimeZone.getDefault(); Now I want to get its time for which I m using , SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z"); for eg, if currentTimeZone = "Calcutta" then its time is +0530 which will be like , SimpleDateFormat dateFormat = new S...

How to fire click event on new app. icon set using HomeScreen.updateIcon(bitmap) ?

Hi all, I m changing the app. icon using HomeScreen.updateIcon(bitmap) when app. is in background. Now how to fire click event when I click on this new app. icon like when I click on previous app. icon (which is set through Project Properties-> Resources) main() is invoked. I have set my main project as CLDC app & m using an alternati...

Query related to Connection type BIS-B Socket in Blackberry application

Hi all, I am trying to establish BIS Socket connection. I am able to establish BIS Http connection from my service provider. I have downloaded one chat application that checks network types supported by my device/service plan which has following list: 1)BIS-Http : OK 2)BIS-SOCKET :OK 3)BES-HTTP : NA 4)BES-SOCKET : NA 5)TCP-HTTP : BAD D...

How to implement a searchable TreeField?

I got how to implement a TreeField. But how to implement a searchable TreeField? ...

BlackBerry:How to lock the screen orienation for Storm?

Hello All, I want to lock the orientation programmatically for my application screens to be displayed only in Portrait mode. I use Storm BB device. How to do lock it via my code? Can someone hint me how to do it? Thanks. ...

BlackBerry - Problem with EditField - line not showing

All, I am having a problem with EditField. I have created an EditField using this code under a "HorizontalFieldManager". EditField nameEditLabel = new EditField (EditField.FOCUSABLE | EditField.NO_NEWLINE | EditField.FIELD_RIGHT); nameEditLabel.setMaxSize(25); nameEditLabel.setMargin(50, 0, 0, 80); horizontalFldManager.add(nameEd...

BlackBerry - Disable show default menu on screen open

Hi, I have labels and fields in my application screen. When i launch to a particular screen which has many labels and editfields and buttons. The problem is, when i launch a particular screen, default menu is popping up with "Show Keyboard", "Switch Applicaiton" and "Full menu" automatically when launching a particular screen. I don't w...