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
- 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.
- 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.
- In the textfield type, textfield. ditditable | textfield. Decimal cannot be used in combination. Otherwise, use one to die. Do not believe it ~~~~
- 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;
}
- ... 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.