blackberry

Custom BitmapField bug on unfocus and scroll (BlackBerry)

别来无恙 提交于 2019-12-11 11:44:08
问题 I have been having this annoying problem when trying to implement a picture gallery on BlackBerry 6. Everything works, however when the focus changes from the top buttons to say the pictures further down the screen, the images seem to glitch and not paint themselves correctly. Please see the images below for an example: (Focus is on the top of the screen(not shown)) (Focus is now on the bottom left image, note that the top image is now blank for an unknown reason) And this happens no matter

Fetch all Image names from blackberry Device

别等时光非礼了梦想. 提交于 2019-12-11 11:43:56
问题 Is there any way to iterate through all images stored in a blackberry device. I have seen this example which iterates over the whole file system and scans each file. I am wondering is there any cheaper way of doing the same. Something that directly looks into the image directory? Thanks 回答1: Using System.getProperty(String key) it is possible to get image storage dirs on device: Key "fileconn.dir.memorycard.photos". Returns default directory for storing photos on SD Card. It should be

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

LWUIT app doesn't start in a Blackberry device

孤街浪徒 提交于 2019-12-11 11:18:29
问题 I'm desperate. I'm developing an app in LWUIT, using the Resource editor. My project works fine in MIDP version, both in simulator and on devices. But when I find my issue when I start to test my app in Blackberry. The app works perfectly in the simulator but doesn't start in the devices. It doesn't give an error message, doesn't say anything. I try to change the UI_RIM.jar with the jars from LWUIT SVN or with the other jar generated from the Resource editor (UI_RIM_Touch.jar), but nothing

Creating advanced user interfaces blackberry

人盡茶涼 提交于 2019-12-11 11:07:36
问题 I am looking out to create a text box similar to the image shown below in my blackberry form. As of now i am able to add a textfield which has a label like say Name:(Cursor blinks) Also when i try adding an image it doesnt show up beside the label but below it.I have tried aligning and adjusting image size etc but all in vain.How can layout managers help me do this any idea? Can some one provide me an exact way as to how this can be achieved.Thanks in advance. //Lets say adding textfield with

How to right align labelfield using horizontal field manager in blackberry

吃可爱长大的小学妹 提交于 2019-12-11 10:58:45
问题 I want to add two labelfields in a HorizontalFieldManager, I want to show two labels as one left aligned and another right aligned like this hfm1 = new HorizontalFieldManager(Manager.USE_ALL_WIDTH); hfm1.setMargin(10,0,10,0); l1 = new LabelField("Weight:"); l2 = new LabelField("20"); l1.setMargin(0,10,0,0); l2.setMargin(0,5,0,0); hfm1.add(l1); hfm1.add(l2); 回答1: Try this code LabelField labl1=new LabelField("weight"); LabelField labl2=new LabelField("20"); JustifiedHorizontalFieldManager

Use of subpaint() on Mainscreen Doesn't paint child correctly

强颜欢笑 提交于 2019-12-11 10:53:10
问题 To get a quick background of the problem please refer to Create Transparent Mainscreen in Blackberry . The problem I am facing is with painting of the child on mainscreen. I wanted my mainscreen to look transparent/translucent as an original requirement and add my other UI elements e.g. managers/field on top of it. So the UI elements I am using are 3 BitmapField(s) which should have its thick border created using BorderFactory.createSimpleBorder() with two colors added for Field.VISUAL_STATE

How to change Label color in Blackberry using eclipse

♀尐吖头ヾ 提交于 2019-12-11 10:29:24
问题 Can you please send me any example code on label color , by default it shows black color i want to change the color for look and feel in UI please help me .. Thanking you 回答1: you can do like this LabelField label = new LabelField("label"){ protected void paintBackground(Graphics g) { g.setBackgroundColor(Color.BLUE); g.clear(); super.paintBackground(g); } }; or like this LabelField label = new LabelField("label"){ protected void paint(Graphics g) { int oldColor = g.getColor(); g.setColor

Blackberry - How to transfer data from background to main ui application

风流意气都作罢 提交于 2019-12-11 09:39:15
问题 Iam using push notification to show notification. Its working fine by Alternate Entry point. Background application will listen for notifications. When I click on a notification, I want to open a specific page on my UI application. How is it done? I tried using the following code, but it will alway load the Ui from the starting page. How can I load a specific page if the app is already running. Else load the UI from the begining page. Also I want to pass some values from the Background app to

How to read the current location in a blackberry application

风格不统一 提交于 2019-12-11 09:24:26
问题 How do I read the latitude and longitude of current location in a black berry application? 回答1: Look at using these classes: LocationProvider, Location, QualifiedCoordinates. LocationProvider provider = LocationProvider.getInstance(null); Location loc = provider.getLocation(-1); QualifiedCoordinates qc = loc.getQualifiedCoordinates(); //Call getLatitude() and getLongitude() in QualifiedCoordinates object. 来源: https://stackoverflow.com/questions/4366609/how-to-read-the-current-location-in-a