First day of Android

Source: Internet
Author: User

Simulator section Code 1. Start the simulator with a command (switch tools) emulator@ Simulator NameEmulator@4.4avd 2. Install apk program with command (switch to platform-tools) adb install program name .apk  Project structure Section res (Resource Resources section, picture, sound, video, webpage, XML file, etc.) 1. Drawable-xxx (used to put pictures, the recommended PNG format picture can only use the number of small letters, not to start with a number) 2xxx, the meaning of the resolution, the size, in turn, is l<mandroid:name= "Write the appropriate permissions"
--<uses-permission android:name= "Android.permission.INTERNET"/> <!--the entire application configuration Android:icon application Some icons Android:label the title of the application Anroid:theme the subject of this program (there is a system theme (typically add an android:) and a custom theme) android:allowbackup= "True" allows backup--&G    T <application android:allowbackup= "true" android:icon= "@drawable/ic_launcher" android:label= "@strin G/app_name "Android:theme=" @style/apptheme "> <!--activities, configuration, which is equivalent to interface configurationAndroid:name, where this class is located, the specific location, if the above manifest write the package, here can omit the package prefix, directly write. Class name can be Anroid:label, the application name, is the same as above, but only for this interfaceIntent-filter: Intent filter, specify if run mainactivity, under what circumstances let Mainactivity run up                -->        <activity    and nbsp       Android:name= "com.ruicaiedu.day1125_base. Mainactivity "            android:label=" @string/app_name ">        & nbsp   <intent-filter>                <action android:name= " Android.intent.action.MAIN "/>                 <category Android:name = "Android.intent.category.LAUNCHER"/>            </intent-filter>        </activity>         <!--content provider Provider: Access to other applications, data sharing between applications- -><!--        <provider android:name= "" android:authorities= "/>--> <!-- Broadcast: When an event is defined, once it has been triggered, it is executed--><!--<receiver android:name= "" > -<!-- <intent-filter> <!-- <action android:name= "ABCDEFG" ></action> -<!-- </intent-filter> <!--</receiver><!--services: Generally in the background, no interface--><!--<service android:name= "" ></service> -</application> </manifest>

First day of Android

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.