java-me

Debugging blackberry application in eclipse “source not found” problem

纵然是瞬间 提交于 2019-12-10 17:27:28
问题 I am debugging an application in Eclipse. It works fine but at some methods, for example enterEventDispatcher() , it shows me source not found. Which source files should be attached to avoid this problem? I am not getting it clearly. 回答1: It sounds like you are trying to debug into the RIM BB OS code. As far as I am aware, RIM does not provide the source code for their API, so there is no source to attach. 来源: https://stackoverflow.com/questions/5949532/debugging-blackberry-application-in

How to check network connection type in Blackberry?

断了今生、忘了曾经 提交于 2019-12-10 17:25:51
问题 In Blackberry application I want to check what type of network connection is being used on particular phone, whether it is BES/MDS,BIS-B or Direct Tcp. Is there any way to find out this? Many applications like Jive,Opera and many more are doing this kind of check. Please help. 回答1: Your question springs from an incorrect assumption. A Blackberry could be communicating over any or all of those channels simultaneously. In fact any application may as well. At any particular time you can

Developing for feature phones and fragmentation across vendors, networks, countries

女生的网名这么多〃 提交于 2019-12-10 16:49:09
问题 I am interested in developing apps for feature phones, since a large percentage of mobile phones are feature phones in both developed and developing countries. I have read about the fragmentation issues caused by the various feature phone devices on the market. I have some questions: 1 . What development tools do I need if I want to develop for most of the various feature phones on the global market? (I've read about vendor-specific tools such as those from Nokia and Samsung, and I've also

Central Button Soft key LWUIT

无人久伴 提交于 2019-12-10 16:26:16
问题 This might seem like a very trivial problem but I have spent quite some time on this without finding a viable solution. Nokia devices have a central select button,which allows us to assign soft keys to it. According to my requirement, I need to assign a specific command as the soft key. For instance it might be "Play" on one screen and "Select" on other. Note that I have a default select command already set using: setDefaultCommand((Command) v.elementAt(v.size() - 1)); which is always the

How to detect key pressed event in LWUIT form?

谁说我不能喝 提交于 2019-12-10 15:55:14
问题 I have written simple j2me program with LWUIT package.I have added one Form in my MIDLET class file. Suppose,user press a key then I want to show another Form .But I couldn't be able to capture key event in my LWUIT Form . This is my code snippt import javax.microedition.midlet.*; import com.sun.lwuit.*; import com.sun.lwuit.events.*; public class MultipleForm extends MIDlet implements ActionListener{ private Form mFirstForm, mSecondForm; public void startApp() { if (mFirstForm == null) {

Creating j2me app that connects to facebook ( not the swt project)

心不动则不痛 提交于 2019-12-10 15:43:44
问题 I want to create a simple j2me application for a start which links with facebook For this , I downloaded the facebook api from http://kenai.com/projects/facebookapime/downloads Then i followed this site for tutorials http://j2megroup.blogspot.in/2011/06/facebook-api-me-10-tutorial.html But then for first i got 2 problems 1) I did not get Browser class ( it gives a compilation error in eclipse even after adding the external library ) 2) I did not got what to put in Redirect uri (i got first 2

BlackBerry - Possible to Hide Video Field?

大憨熊 提交于 2019-12-10 15:08:46
问题 I want to write an application like a Flashlight (with the help of the camera LED). Player player = javax.microedition.media.Manager.createPlayer("capture://video?encoding=video/3gpp"); player.realize(); VideoControl videoControl = (VideoControl) player.getControl("VideoControl"); if(videoControl != null) { videoField = (Field)videoControl.initDisplayMode( VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field" ); try { videoControl.setDisplaySize(1, 1); } catch(Exception e) { PGLogUtil

Java's DataInputStream.readUTF and number of bytes read

元气小坏坏 提交于 2019-12-10 14:19:35
问题 I am writing a custom archive format in JAVA (J2ME to be precise). The archiver works OK, however I have little problems with de-archiving. How could I know how many bytes have been read when reading a UTF8 string thorough the readUTF method? I know that the first two bytes of a string saved using writeUTF are a short value of the string's length, but I'd like a nicer solution. Or is there any way to know how many bytes are left till the end of the DataInputStream (the available method doesn

Can A Midlet invoke another Midlet?

痴心易碎 提交于 2019-12-10 12:59:25
问题 I been looking around and at sources like this one they say that a Midlet can invoke another if they are in the same suite, or if they are in the same namespace and in the same jar file. I do not understand what a Midlet-Suite is? Also after searching through the web I did not find any documentation or code examples for One Midlet invoking another Midlet. 回答1: The other replies are pretty much taking care of your questions about MIDlet Suites but I would suggest reading the MIDP specification

Return the correct value from a JavaME thread

橙三吉。 提交于 2019-12-10 12:15:53
问题 I wrote a function which returns a string. And there is a Thread implementation the function, like follows, and I am calling [metaDataTrimmed = getMetaData(url);] this function and store the return value to a string value. My problem is the the function immediately returns the null string, which is its initial value. And I checked my function works properly. So I try for a Thread.sleep() method using a dirtybit and also tried for Thread.join(). Is there any standard method in BlackBerry to