J2ME, is how to achieve EventListener mechanism?
Abstract: J2ME, is how to achieve EventListener mechanism?
J2ME, is how to achieve EventListener mechanism? No java.util.EventListener interface??
I would like to accept serial data interface needs a EventListener ….
Listener is nothing more than a Callback interface
Serial communication should be dealt with StreamConnection bar, forget
Is CommConnection
J2EE is not in the inside SerialPort SerialPortEventListener used in the method? J2ME is not in such a way?
Asynchronous you want to .. ah TT that things are on the thread Chengzhe, not to hold J2ME
But J2ME support for multi-threaded good ah! Why is there no corresponding Listener?
Learning…… top……
TT … … many mobile phone handsets that the CPU is 386 grades ah
What I mean is that since the J2ME has already provided Runable methods and Thread, why he will not be able to provide a more flexible manner so that the listening mode, that is, using SerialPortEventListener way out.
Without such methods, many of the functions of difficult ah.
Do not know ah, Haofan that my not realize the serial port of the
It is as if you are accusing NES can achieve 3 D T_T
Read with you what is the flow difficulties, the J2SE Listener is not written by the people
Oh, I am sorry the Kazakhstan, do not let your annoyance infection.
I am not for the game, trying to do a transceiver data applications, I started to learn the J2SE, EventListener more familiar with the ways now use J2ME reallyä¸çˆ½T_T
J2ME appears in the form of eavesdropping Listener realize it is very difficult (impossible)? , Because there is no interface to provide the most basic EventListener
Only by polling (Polling) form, and read a few examples, all from the two threads (finish) for doing so costs are also high bar, but could not determine the status of the serial, unless the data Join signs.
Because of the sending and receiving Message format is defined, fundamental没法åmodified, we really need such a serial state judgement.
In fact, the most fundamental problem is: Polling, no SerialPortEvent.DATA_AVAILABLE J2SE under the judgement of the state, people depressed.
↑ Back
Tags: EventListener
Recommend Articles
June 4, 2007 | Filed Under API for Java |






