The bug of using the j2_program on the moto mobile phone

Source: Internet
Author: User
I have written the j2_program over the past few days, and everything is normal and happy on the simulator provided by Sun.
Copy it to your phone and try again. Dizzy. There is a form that does not report an error, but it cannot be opened.
One-by-one addition of tests per day (the moto designer estimates to be left-handed when the mobile phone's USB Plug-In exists)
One by one issues surfaced
  1. It cannot have more than three layers of class inheritance relationships, otherwise it is easy to create such exceptions, but no error is reported, but it cannot be opened.
  2. Textfield cannot be used. the ditditable type. Otherwise, as long as the focus is moved to the object, the memory will run wildly and eventually overflow. you can use sun's Sun Java (TM) wireless toolkit 2.5.2 for cldc to open the memory monitor.
  3. In the textfield type, textfield. ditditable | textfield. Decimal cannot be used in combination. Otherwise, use one to die. Do not believe it ~~~~
  4. Stringtokenizer seems to be faulty. i'm not sure. The work schedule is too tight. I don't have time to confirm it. Who can check it out. anyway, when I call the following code, there will be an error-free exception, and then the machine program will not be able to open. /***//**
    * Moto cannot be used.
    *
    * @ Param Str
    * @ Return
    * @ Author ken_xu
    */
    Public static string [] Split (string Str )...{
    Return split (STR, '',-1 );
    }

    /***//**
    * Moto cannot be used.
    */
    Public static string [] Split (string text, char separator )...{
    Return split (text, separator,-1 );
    }

    /***//**
    * The Moto mobile phone cannot be used.
    *
    * @ Param Str
    * @ Param Separator
    * @ Param Max
    * @ Return
    * @ Author ken_xu
    */
    Public static string [] Split (string STR, char separator, int max )...{
    Stringtokenizer Tok = NULL;
    Vector v = NULL;
    If (separator = '')...{
    Tok = new stringtokenizer (STR );
    } Else ...{
    Tok = new stringtokenizer (STR, separator );
    }
    For (V = new vector (); Tok. hasmorechars ();)...{
    String S = "" + Tok. nexttoken ();
    S = S. Trim ();
    If (S. Equals ("") = false )...{
    V. addelement (S. Trim ());
    }
    }
    Int listsize = V. Size ();
    If (max> 0 & listsize> MAX)
    Listsize = max;
    String list [] = new string [listsize];
    Int I = 0;
    Int lasttokenbegin = 0;
    Int lasttokenend = 0;
    For (enumeration E = V. Elements (); E. hasmoreelements ();)...{
    If (max> 0 & I = listsize-1 )...{
    String endtoken = (string) E. nextelement ();
    Lasttokenbegin = Str. indexof (endtoken, lasttokenend );
    List [I] = Str. substring (lasttokenbegin );
    Break;
    }
    List [I] = "" + E. nextelement ();
    Lasttokenbegin = Str. indexof (list [I], lasttokenend );
    Lasttokenend = lasttokenbegin + list [I]. Length ();
    I ++;
    }
    Return list;
    }

  5. ... Wait. I'll look for it again. Find the next one and write it up. Let's continue ~~~~~~~~~

Ah ~~~ I don't know what the moto mobile phone manufacturer thinks. There are so many bugs.

Expected: it would be nice if the moto E2 mobile phone (the Linux system running on the arm chipset) could support system. Out. At least we can see the exception through Telnet.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.