in Education by
When writing j2me applications for cellphones, using System.out.println() prints on the console if using an emulator. However, when the code is deployed on a cellphone, where does the console output go? If it is impossible to see this in the untethered cellphone, is there a way to see it if the cellphone is still connected to the deploying PC [via USB] ? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
On Symbian phones (Nokia, Sony-Ericsson, Motorola, Samsung, Panasonic, Siemens, check for the Series60, Series80, Series90 or UIQ platforms), You can retrieve both System.out and System.err. Most importantly, you can retrieve Throwable.printStackTrace() as well. Early versions of Symbian OS came with a native tool called Redirector. It ended up becoming available to third party MIDlet developers too. It might be hard to find these days but can be re-developed using C++ code that plugs into the Symbian implementation of the C standard library that the Java Virtual Machine uses. Newer versions of Symbian OS come with an additional GCF protocol that allows retrieval of System.out, System.err and Throwable.printStackTrace() by simply using javax.microedition.io.Connector.openDataInputStream("redirect://"); You may need to use "redirect://test" on some versions of Series60, during the transition from the Sun Ltd cldc-hi virtual machine to the IBM J9 virtual machine. The connection needs to be opened before you launch the MIDlet whose output you want to log so you'll need to open it in a separate MIDlet.

Related questions

0 votes
    When writing j2me applications for cellphones, using System.out.println() prints on the console if using an ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    In Java, what will be the output of the following code and how? double x=2.9,y=2.5; (SOP is abbreviated form ... x),y)); Explain how Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
0 votes
    int n=10;int res=(n–+10>–n×5)?++n:n++ System.Out.println(res+”,”+n); what is the output Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
    What is the output of the following: System. out. Println(“Time\n and \t tide waits for\”no man\””); pls answer Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    What Is the output of the following:String a= Java is programming language \n developed by \t\'James Gosling\' ... ; Please Answer ASAP Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    State the type of errors if any in the following statements: (i) switch ( 2 ); (ii) System.out.println(670/0); pls answer Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    double x=0.5; System.out.println(Math.rint(x)); ….Plzz give me the output… Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    import java.util.*; class hello{ System.out.println(Math.ceil(-28.23)); } IN THIS CODE JAVA COMPILER IS ... URGENT .PLEASE . Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
0 votes
    class Modulus { public static void main(String args[]) { double a = 25.64; int b = 25; a = a % 10; b = b % 10; ... (a + + b); } } Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Math Functions: System.out.println (Moth floor (-0.48)]; System.out.println (Math ceil (-0.46)); System.out.println ... Hound (-8.5)); Select the correct answer from above options...
asked Dec 16, 2021 in Education by JackTerrance
0 votes
    Explain the System.out::println expression....
asked Nov 8, 2020 in Education by Editorial Staff
...