Android Development Series logs-(1)

Source: Internet
Author: User

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

Related Article

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.