I. Basics
1. wtk
2. MIDP
3. MIDlet
4. MIDlet suite
5. Jar Jad
6. Jam AMS
7. Two management methods of application manager.
8. midp1.0 midp2.0
9. manifest file list file (manifest. MF)
10. MIDP execution environment MIDP execution Ring
Environment
11. cldc
12. Optional packages of Optional package
13. functions and resources
14. configuration (cldc, CDC) -- Profile (MIDP
,......)
15. Determine permissions and connect external resources
16. Native applications
17. Basic Program structure of the MIDlet
18. The starting behavior of the MIDlet
19. MIDlet Lifecycle
20. MIDlet manages its own Lifecycle
21. Low-Level APIs and low-level events
22. redraw events
23. Coordinate System
24. pixels
25. Graphics
26. Stroke Style)
27. Graphics. Solid graphics. dotted
28. rectangle and rounded rectangle
29. Arc
30. Triangle
31. Canvas and screen event handling
32. Normal fullscreen
33. Handle Keyboard Events
34. keyboard response
35. Processing touch screen events
36. When both low-level and high-level events occur
37. redraw events
38. Basic Structure of game programs
39. End of Thread
40. Time Control
41. About the display class
42. About the image class
43. advanced graphics
44. Draw pictures, text, and some functions
45. Font class
46. Sound
Ii. Game framework
1. program structure: drawing, logic processing, and buttons
Processing Section.
2. State Machine
3. Composition and functions of the State Machine
Problem:
1. Coordinate (3, 1) understanding? Indicates the pixel ),
(3, 0), (3, 1) surrounded by this Part.
2. settitle ("full screen test"); the method called
? The abstract method of the displayable class is called.
3. Why do I call the paint () method sometimes?
Use the custom clean () method to clear the screen. Some do not,
Big difference? Big difference, such as unclear screen, the previous
The screen will be still above. The content in the current paint will be
The previous screen shows a stacked effect. Therefore
Set the previous screen to white to fill in the full screen
Rectangle, that is, empty.
4. setcommandlistener (this); why do I need this line?
Code, which is automatically called if implemented? No,
This is because the method that implements this interface has a displayable parameter.
Number, commandaction (command,
Displayable), this parameter is inherited
Its subclass. You must confirm this class.
5. After the constructor calls the thread and executes the run () method
When will the paint () method be executed?
First, call the constructor to initialize the thread in the constructor,
And call the run method, and then Startapp () starts the application,
Then display. getdisplay (this). setcurrent
(Displayable); set the current screen to displayable
Subclass. setcurrent executes the painting method when setting the current screen.
Method. After the paint method is executed, return to Startapp.
Statement.
6. <| meaning?
A <B Indicates the binary representation of A, and moves B
Position.
A | B indicates that A and B are converted to binary before or. For details, see
1.
Note:
1. Triangles only provide the triangle filling function.
2. the zero point of the coordinate changes with the change of the pattern, so
Zero point is not absolute, but relative to the application.
3. A sudden call. This is hidenoworkflow () and will be called,
Then, the pauseapp () of the MIDlet is called. Wait for the call
Then, the system calls the showpolicy ()
And then call Startapp () of the MIDlet ().
4. All callback functions are executed in the same thread that processes the UI.
Therefore, in theory, repaint () only generates a repainting event.
The system must wait until keypressed.
()/Keyreleased () can be resumed after execution
Repaint the screen with paint. However, if you add
Servicerepaints.
Summary:
1. There is still a constructor in the canvas drawing class, which is called during initialization.
Used, called before painting.
2. getgameaction () is a multiple-to-one method.
3. When both advanced and low-level events occur, the system will
Automatic judgment. If the button belongs to the system, it will be handed over
Advanced event processing functions.
It is done by low-level events. Advanced and low-level events will not be sent in sequence
Raw.
4. To accept user input, the paint () method cannot
In an infinite loop, painting () cannot enter an infinite loop.
Accept user input.
5. display. getdisplay (this). setcurrent
(Displayable.
6. The meaning of servicerepaints.
7. boolean flag = true.
8. Static MIDlet instance; static generation function.
Learn more:
1. view the two methods of implementing the thread.
2. jtwi.
Java technical specifications in the wireless field (Java
Technology for the wireless industry
Jtwi, jsr185) is precisely in order to complete the "establish a standard
To ensure the cross-platform nature of the applications.
.