blackberry-storm

removing the default blue color on focus

∥☆過路亽.° 提交于 2020-01-15 06:33:11
问题 I have a created a custom Button field , when the button is on focus default blue background is coming , i want to remove that blue background . actually i am placing image on button and on image there are certain area which is transparent . when that custom button is on focus then blue background is displayed . i want to remove that blue background. Thanks alot 回答1: Override method protected void drawFocus(Graphics graphics, boolean on) { if (on) { //draw your own custom focus. } } 回答2:

Blackberry way to store audio and video into sqlite?

隐身守侯 提交于 2019-12-24 00:14:14
问题 I want to make a blackberry app. which will store audio and video files into the sqlite database. Does blackberry have a special api for this? (special classes for byte[]) Can I store files into sqlite on blackberry? 回答1: Sure can. Have a look at using BLOB in version 3+. Why you'd want too instead of using links to the content, well, that's up to you and the particular application you're looking to create of course. Here's a good development guide from RIM on working with SQLite on the

Do I need to have a BIS or BES service in order to use MapField in the code?

我只是一个虾纸丫 提交于 2019-12-11 18:27:40
问题 I am trying to learn about MapField in Blackberry and I need to know that wheter I need to have a BIS or BES service in order to use MapField. I can use the MapFiel while using the simulator but when I read some forums I saw some people wrote that people need to have BIS or BES to show the MapField. Is it true or not ? Thank you all... 回答1: You need to have a BIS conection, so you should run the MDS emulator to have the BIS server emulation on your computer, this will work for your mobile

background image scroll disable in Main field manager in blackberry

帅比萌擦擦* 提交于 2019-12-11 18:10:36
问题 In my application there is one MainScreen .This screen contain lots of Vertical and Horizontal field manager and all content display successfully with scroll . This is my main VerticalFieldmanager code . vfm_Main = new VerticalFieldManager() { public void paint(Graphics g) { g.setColor(Color.WHITE); g.drawBitmap(0,0,mybackgroundImage.getWidth(),mybackgroundImage.getHeight(),mybackgroundImage,0,0); super.paint(g); } protected void sublayout(int maxWidth, int maxHeight) { super.sublayout

Current location using wi-fi on BlackBerry Storm 2 (9550)

泪湿孤枕 提交于 2019-12-11 11:33:14
问题 I want to get the current location using wi-fi on my Storm 2 9550. I have implemented LocationProvider and it is working fine on the simulator after sending lat long manually, but it doesn't work on the device. GPS is already active on the device but to my knowledge BlackBerry GPS cannot get location without a Network Provider. There is no network provider on the device. 来源: https://stackoverflow.com/questions/8291480/current-location-using-wi-fi-on-blackberry-storm-2-9550

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

两盒软妹~` 提交于 2019-12-10 10:30:20
问题 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, String filePath = "file:///store/home/user/image.png; FileConnection fconn = (FileConnection)Connector.open(filePath, Connector.READ); if (fconn.exists()) { ........

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

烈酒焚心 提交于 2019-12-09 12:55:56
问题 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(); startBitmap = Bitmap.getBitmapResource("start.png"); startBitmapField = new BitmapField(startBitmap); startBitmapField.setChangeListener(this); hfm.add(startBitmapField); okButton = new ButtonField(

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

强颜欢笑 提交于 2019-12-08 13:37:26
问题 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 DNS 6)TCP-SOCKET : TIMED OUT As I know direct TCP is not supported by my service provider. So I would like to use BIS-Socket connection. Can anypne please help me in

How can I invoke the Blackberry camera and save the picture that is taken in my code?

柔情痞子 提交于 2019-12-08 07:35:42
问题 I'd like my user to take a picture as an attachment by using the built in camera. Is there someway to invoke the camera on a button press and save the resulting taken picture? 回答1: The other option is to use the BlackBerry Invoke API to start the native camera application and listen for a file system event: Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA, new CameraArguments()); then, later: class FileExplorerDemoJournalListener implements FileSystemJournalListener { public void

Lock orientation on Storm

橙三吉。 提交于 2019-12-08 05:42:23
问题 I need to lock my application in portrait mode on a Storm(and Strom 2) device. I use Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_PORTRAIT); for this. Here is the problem: The screen direction only changes once the device is rotated to a direction supported by the provided direction parameter. (source) If the user has the device in landscape mode and opens the application, the application will open in landscape and will only lock to portrait mode when/if the user rotates