blackberry

To change the ButtonField background during click event in BlackBerry

给你一囗甜甜゛ 提交于 2019-12-14 03:42:38
问题 In BlackBerry, how to change the ButtonField background color during the click event? For example, for the long press the background color needs to change. For me it takes the default color blue. How to change it? This is our custom buttton field. But it shows the default blue color for the button click event. public class CustomButtonField extends ButtonField implements GlobalConstant { int mHeight; int mWidth; public final static int DEFAULT_BACKGROUND_COLOR_NORMAL = 0x167c9c; public final

How to crop a .png EncodedImage in BlackBerry while preserving transparency

时间秒杀一切 提交于 2019-12-14 02:56:32
问题 I have a single .png image with several icons on it (with transparent areas) and would like to crop individual icons from it. In Java ME it was rather straight-forward, but in BlackBerry I haven't found an equivalent. The code here shows an example with a Bitmap, however doing so paints the transparent areas with white color: public Bitmap cropImage(Bitmap image, int x, int y, int width, int height) { Bitmap result = new Bitmap(width, height); Graphics g = new Graphics(result); g.drawBitmap(0

What options are there for cross-platform (iPhone, Android, Blackberry) development?

柔情痞子 提交于 2019-12-14 02:56:14
问题 Me and my friends are starting app development. We have created 2 apps now, and have 3 more in the works. We're looking for a development tool or environment that will allow us to build games that works on all the major handsets. We're using Flash at the moment for cross-platform, but are there any better and more powerful options? Or would it be best to write the code in one language, then convert it line by line to the others? How do the creators of games like Angry Birds do it? Thanks. 回答1

Get selected index list title blackberry java

試著忘記壹切 提交于 2019-12-14 02:43:59
问题 Currently when i click on any list item, it get index of of first clicked list item index, means if i click on videos, it save video click index even when i click on images it shows video data. i want when i click on any item it shows only that selected index data and that is possible i get selected item list title dynamically ?? Vector v = new Vector(); for (int i = 0; i < 3; i++) { final String listTitle = _folderList[i]._fileName; v.addElement(new ListRander(closedIcon, listTitle, playIcon

BlackBerry - “Media unloaded while initializing” error

我的未来我决定 提交于 2019-12-14 02:38:40
问题 I am trying to play a video based on the videorecordingdemo sample from JDE7.0 (code below). I am building for OS5.0 - which is why I cannot just run the whole demo app which is written for OS7.0. I am using the emulator (9300) and have set up a folder to be used as my sd card. I have placed a .AVI video in there. I have also tried placing the .AVI into the resources, and streaming it from there. In both cases, when I call Player.start() , the following exception is thrown: net.rim.device

How do I make a gif disappear after it's done on blackberry java?

馋奶兔 提交于 2019-12-14 01:56:09
问题 I know how to load in a gif and let it run but how do you make it disappear? Ie. it's on top of another bitmap background and looks like its interacting with the background, I want it to go away after its finished one time through. 回答1: You can set the gif to non-repeating and make the final frame 100% transparent. 来源: https://stackoverflow.com/questions/10354219/how-do-i-make-a-gif-disappear-after-its-done-on-blackberry-java

Facebook BlackBerry SDK

徘徊边缘 提交于 2019-12-13 22:16:28
问题 I want to implement facebook login and sharing in my blackberry app. Can you help me with a sample code of how to use it as I read the readme file it wasn't useful at all. 回答1: A quick google with your title would have got you this: http://sourceforge.net/projects/facebook-bb-sdk/ 回答2: Download jar from here and add it to your project http://sourceforge.net/projects/facebook-bb-sdk/ and write this code in to your project screen ApplicationSettings sett = new ApplicationSettings("http://www

blackberry Mapfield and RichMapField show blank page

二次信任 提交于 2019-12-13 21:55:55
问题 I want to create a map field into my blackberry app using java eclipse, I create a map field and RichMapField and both shows blank page. Note that my device does not contains a sim card, please can anyone helps me 回答1: As far as I can tell, BB maps requires BIS to be enabled. And since you don't have a sim in your device, I'd rate thats the problem. Do I need to have a BIS or BES service in order to use MapField in the code? I find this to be really silly and kind of unacceptable, so

Blackberry Error: Cannot run program “jar”: CreateProcess error=2, The system cannot find the file specified

回眸只為那壹抹淺笑 提交于 2019-12-13 21:24:43
问题 I have large number of class files , with field managers.I am getting this error Re: I/O Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified, on running the app.If i am excluding some classes it works fine for me ..Please suggest me how to resolve this error . 回答1: I have experienced the exact same issue with a project that contained a lot of classes. Due to the increase in the number of classes, the java jar file moves away from the root which

how to stop Browserfield requestContent() method when back to mainScreen on blackberry

和自甴很熟 提交于 2019-12-13 20:15:58
问题 When i click a button, in next screen i've loaded browserfield requestcontent() using thread. and i've added browserfield listener. when click back button , i came to first screen. But in background, requestContent is executing. how to stop it.? i write the code on onClose() method public boolean onClose() { for(int i=0;i<=Thread.activeCount();i++) { if(Thread.currentThread().isAlive()) { Thread.currentThread().interrupt(); } } return super.onClose(); } My code is., new Thread(new Runnable()