blackberry

Blackberry Text Filter

旧街凉风 提交于 2019-12-13 02:46:56
问题 I want a BasicEditField that lets me enter alphabets only...and a combination of upper case and lower case ...as in Jan, Feb...when i use the upper case and lower case filter that are there in BaiscEditField it allows either the entire string to be in upper case or lower case , not a combination.How do i achieve this? 回答1: Richard's right, extend TextFilter, UPDATE according to Marc's suggestion: class AlphaTextFilter extends TextFilter { public char convert(char c, int status) { if (

Blackberry - Get list of Profiles and active Profile info

℡╲_俬逩灬. 提交于 2019-12-13 02:05:47
问题 I'm developing a Blackberry application, where I need to get the list of profiles from phone (for sound settings). Is there any way for getting the profile info? 回答1: There is no way to query the selected profile, but you can integrate into the profiles so that the user can select the notification they want from your application in each profile. Please see the notificationsdemo included with the BlackBerry JDE for an example. Mark Sohm BlackBerry Development Advisor www.BlackBerryDeveloper

HTML inputs in Blackberry have different width depending on their type

∥☆過路亽.° 提交于 2019-12-13 02:05:20
问题 Inputs with styles width: 100%; box-sizing: border-box; of type number or date have a different width than the ones of type text when I test the following code in Blackberry. I have checked it for simulators 9380, 9810 and 9850 and in 9810 device. <style type="text/css"> #inputsTest { border: 1px solid red; margin: 15px; } #inputsTest input { border: 1px solid green; width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } </style> <div id=

How to get text through key press in Blackberry

China☆狼群 提交于 2019-12-13 01:15:47
问题 I need to get the text of the keys at the event of key press in Blackberry. This happens when the user presses a key from the the keypad in order to type text. How is that possible? 回答1: you can get the pressed key text by overriding keyChar like this public boolean keyChar(char key, int status, int time) { if (key == Characters.ESCAPE) { int result = Dialog.ask(Dialog.D_YES_NO,"Are you sure you want to exit?"); if (result == Dialog.YES) { closePopup(); } return(true); } else if (key ==

Touch Event Blackberry Triggered Multiple Times

不羁岁月 提交于 2019-12-13 00:36:56
问题 I'm working with the Blackberry Touch Event and I need to process the TouchEvent.MOVE , TouchEvent.UP and TouchEvent.DOWN to move a carousel of images and the TouchEvent.CLICK to generate some specific action. My problem is that the touchEvent() method is being called several times. How can I prevent this? Because the behaviour is getting all messed up. For example: when I just want to capture the TouchEvent.CLICK event, the UP-DOWN-MOVE-CLICK are being triggered one after the next. My code

Scrolling problem in Blackberry application

核能气质少年 提交于 2019-12-12 22:35:55
问题 I am not able to scroll through the application screen using trackball. I am using Blackberry Pearl 8100 simulator. Please help. Thanks in advance. 回答1: Does it work on other simulators and just not the 8100? How about a real handset? For your screen class you can try using the style attribute to specifically tell it to have vertical scrolling, super(MainScreen.VERTICAL_SCROLL | MainScreen.VERTICAL_SCROLLBAR); similarly you should make sure that it's not set to super(MainScreen.NO_VERTICAL

Tabs in Blackberry

穿精又带淫゛_ 提交于 2019-12-12 20:29:27
问题 I am developing application in BlackBerry and i am a newbie, so no idea how to implement. In my application i have to implement tabs. For this i used pillButtonSet. In my application i have five tabs and each tab has complex view. I want to create different java class for different tabs. As in Android we have TabActivity and we easily navigate between tabs. Still i have not designed the view for each tabs. I am googling but no success. I am worried; do i need to write whole code on one screen

Check blackberry is connected via USB

北城余情 提交于 2019-12-12 20:13:58
问题 I am doing an application which access the SD/Media card to display its images. But when device is connected via USB I cant access the media card. If thats the case, I want to show a message to user asking him to disconnect device form computer. How can I programatically check that SDCard is accessible or not ? How can I check whether the device is connected to computer via USB? Thanks. 回答1: I am not sure about your second question about checking whether the device filesystem is mounted via

kSoap and .Net webservice that returns a DataSet

。_饼干妹妹 提交于 2019-12-12 19:00:05
问题 I know that using DataSets are a big evil, but as the service is not under my control and the prospect of creating a proxy service is a no go.... What i'm trying to see is if anyone has created class structure that can be deserialized using the kSoap serializer, or am i smoking the wrong stuff. Going to start it in the mean time and see if it is possible. Below is the resulting data as expected (Schema and Diffgram): <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http:/

Convert a byte array to base64 for blackberry using Eclipse

别等时光非礼了梦想. 提交于 2019-12-12 18:49:37
问题 How do I convert a byte array to a base64 encoded string using the BlackBerry plug-in for Eclipse? 回答1: Check out the BlackBerry JDE API documentation for net.rim.device.api.io.Base64OutputStream 回答2: The best source of information is from one of the following: Commons Apache Codec ostermiller.org/utils/Base64.html 来源: https://stackoverflow.com/questions/3753629/convert-a-byte-array-to-base64-for-blackberry-using-eclipse