How to read console output on j2me mobile phones? Where does System.out.println () go?

When writing j2me applications for mobile phones, it System.out.println()prints to the console when using the emulator. However, when the code is deployed on a cell phone, where does the console output come from?

If this cannot be seen on an unmanaged mobile phone, is there a way to see it if the cell phone is still connected to the deployment PC [via USB]?

+3
source share
8 answers

Symbian (Nokia, Sony-Ericsson, Motorola, Samsung, Panasonic, Siemens, Series60, Series80, Series90 UIQ). System.out, System.err. , Throwable.printStackTrace().

Symbian OS Redirector. MIDlet. , ++, Symbian C, Java.

Symbian GCF, System.out, System.err Throwable.printStackTrace(),

javax.microedition.io.Connector.openDataInputStream("redirect://");

, "redirect://test" Series60 cldc-hi Sun Ltd IBM J9.

MIDlet, , MIDlet.

+3

j2me logging. , , . System.out.println() .

+2

QuickRecipesOnSymbian.

J2ME MIDlet / Symbian:

http://wiki.forum.nokia.com/index.php/How_to_get_System.out_output_from_a_MIDlet_and_save_it_to_a_file_in_S60_devices

Samsung i8910. ( , , zip ​​ .)

+2

: . - ( , ), .

, , Sony Ericssons, , . , , ( ) .

, StringBuffer . , StringBuffer . .

+1

, , , . BlackBerrys, System.err , , System.out.

0

println .

, (, Sanyo 8400 Sprint.

0

Logging into devices is always a problem with J2ME, because there is no standard implementation for it. I can turn to GEAR . This is the J2ME graphical environment, which also implements the "inside the device" debugging console, where you can print your lines and display them on the screen.

0
source

For example, BlackBerry J2ME devices can be connected to a computer, and a debugger can connect to this device. After starting the program on the device itself, your System.outOutputStream is sent to the debugger console.

0
source

Source: https://habr.com/ru/post/1697456/


All Articles