1. install the development environment
1. required resources
JDK, Eclipse, SDK, and ADT
2. note
the path of all resource storage must not contain Chinese characters
the simulator path can be modified by creating the environment variable android_sdk_home. You can specify any directory, but cannot contain Chinese characters. it takes effect after you restart eclipse.
2. call
1. page
layout with textview, edittext, And button
2. java Code
findviewbyid (INT) to obtain the component on the Interface
setonclicklistener (onclicklistener) register and click the listener
Create intent object, setaction (string), setdata (URI)
startactivity (intent) to open a new interface
3. permission
on an Android phone, you must register the permission for some paid or private operations.
3. send text messages
1. Java code
Get the manager smsmanager. getdefult ()
Use the manager to separate smsmanager. dividemessage ()
Send SMS smsmanager. sendtextmessage ()
Pop-up notification toast. maketext (context, String, INT). Show ()
2. Permission
SMS is also a billing operation and requires Permissions
Iv. Layout
Linearlayout linear layout. vertical or horizontal direction can be set.
Tablelayout table layout, similar to the table in HTML
Framelayout frame layout. the write-down view overwrites the write-first view.
Relative layout of relativelayout, and the layout of components written later is relative to that written first.
Absolutelayout absolute layout, location of the interface through coordinates