First day of Android

Source: Internet
Author: User

1.1.1Communication Format 1G----4G of Android 20,008 year September 23 1.0 October 19, 2011 4.0 June 28, 2012 4.1
                              just go to the company, 2 014 years      based on 4.0 Google company backwards compatibility                     & nbsp            2014 October 15    5.0   Lollipop          &NB Sp                                                 until now      2016     up-compatible                                  & nbsp;                             & nbsp; 2015 October 6       6.0 cotton Candy                 &NBSP ;  android the stratification of the environment                Android architecture   4 levels           &NBS P         include    1,linux kernel layer   There are many driver            &NBS P                   2, library   System runtime    sqlite    &NB Sp                                and Nbsp; android runtime  Library
* Core Libraries-  This core library provides most of the functionality of the java  programming language core Library.
* Dalvik Virtual machine-&N BSP; each android  application runs in its own process and has a separate instance of the dalvik  virtual machine.
3, Application {Framework) tier framework there are many manager Android systems in which each application relies on a range of services and systems provided by the framework                               4, Application layer We're playing with these apps. Two virtual machine JVM Dalvik "Main differences"ART is the upgrade of DalvikSetting up the development environment This is the first day we're going to do it. Android SDK for Android Dev toolset eclipse downloadFirst step download and install the JDK
The second step of ADT's download installation bundle for Eclipse binding
===============================1.2After extracting the downloaded adt-bundle, the root directory structure consists of 3 parts, Eclipse, SDK, SDKManager.exe, and so on. SDK Manager.exeis an SDK manager under the ADT root directory that is responsible for downloading, updating, and deleting SDK- related of the file          AVDis the abbreviation for Android virtual machine and is the program used to manage Android VMS
DDMSis the abbreviation for the Dalvik Debug Monitor Service. DDMS for IDE and emulator and Android real rack up A bridge.
Engineering and deployment to simulator 1.3 AndroidGetting Started with programs
Development steps 1, 2, 3, 4, 5,ADB introduction adbis the abbreviation of Android Debug Bridge, the ADB can be used in Eclipse through the Ddms to debug the Android program, adb Takes up 5554 at startupport, so avoid other apps that conflict with that port. By default so when we run Eclipse adb The process will run automatically. -----------------------------------------
directory structure for Android apps
        SRC
        Gen Catalog
        Android
        Libs folder   Code three-party jar package
        Android  dependenceies
        bin 
        RES directory Start to really remember   Span data-wiz-span= "Data-wiz-span" > "case One" Phone Dialer
Layout One input box one button
Declaration of permissions
EditText Worth getting
// Get user-entered data from the EditText control
String num = Et_num.gettext (). toString (). Trim ();
button Click to listen for events
Use of Intent
Create an Intent object, so making a call is actually calling the Android system
to call the call function,
and there is an interface to the call, so you need to start the activity remotely via intent
calling the system
to make a phone call function
several ways to click events
Common notation Activity implements Onclicklistenner interface"Case two" SMS transmitter use of SMS transmitter
Use of Textutils
Use of Toast
Toast is a tool class provided by the Android system that pops up a message on the phone screen and disappears automatically
The
first parameter context context, mainactivity inherits the context,
so it's itself a context object
.
use the text in the input box to be judged Textutils
sending SMS is implemented via SMS manager provided by API.
get an object by Smsmanager static methodText messages longer than a certain limit need to be cut into multiple batches sent Be sure to use the Dividemessage (String) method provided by the Smsmanager object to cut
smsmanager.sendmultiparttextmessage (num, NULL, parts, NULL, NULL);
The first parameter is a string target phone number 76. * The second parameter, string SMS center number, is recommended to be set to NULL, using the default SMS center 78 provided by the SIM card. * The third parameter ArrayList SMS content 79. * Fourth parameter arraylist> after the message is sent, if it is sent successfully, then the callback parameter can be implemented by delay intent and broadcast, which is set to NULL 81. * The fifth parameter arraylist> after the message is sent, if received by the other side, then callback the parameter lines 59th and 86 of the above code use Mainactivity.this. The type of parameter used in Tost is context, because the activity It is the sub-class of the context, but this line of code is used in the internal class, if you use this directly then he represents the current inner class pair like, in an inner class, if you want to reference an external class object, you need to pass the class name. This call.
   
 ---------------------------------------------------Oriententation v handroidunit of length in
PX DP device independent wide-height proportional SP text---------------Android Developer Tools ADT is a plugin for Eclipse plugin---------------------Bul Id-tools Packager dose offline help document support supports high and low version running Jar Package Platform development environment Soures source image Image--------------------------Programming considerations
compilation recommended using 16 of the most stable 4.1.2AVD Android virtual Devicegeogle mobile Nexus
Specification for size of----------------------------.
QVGA quter
HVGA higer
WVGA
larger FWVGA larger
>
look how many inches
The Snapshot sleep effect does not recommend the user Host GPU to render the ADB Android Debug Bridge adb command with a PC's discrete graphics card-------------------------Configure AVD
name emulator names device screen size target version 1.7 Android Common layout relative layout
The
most important feature of a linear layout is the ability to assign space to the child controls by weight.
Frame Layout

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.