2G, 3G, 4G technology: network communication technology: 1G-->2G-->3G-->4G&NBSP; 5g 1 enhancements 2 faster &NBSP;3G: Third-generation mobile communication technology Android Origin: android: Robotics android: Google's Linux2.6-based free open source operating system Upgrade: 1.5 cupcake (cupcakes) 1.6 donut (Donut) 2.1 eclair (Flash puff) 2.2 Froyo (frozen Yogurt) 2.3 gingerbread (Gingerbread) 3.0 Honeycomb (Honeycomb) just for tablet systems 4.0 ice cream SandWich (Ice Cream Sandwich) Triad Mobile TV flat 4.1 jelly bean (Jelly Bean ) 4.2 jelly bean (Jelly bean )   5.0 lime pie (lime pie) Architecture: android four-tier architecture diagram : 1.applicaitons: Application layer 2.applicaitons Frameword: Application framework layer (API layer) & nbsp 3.libraries (library, C-language library): It's a C-language open source framework android Runtime: ( Dalvik VMs) Fosshótel Dalvík virtual machines. Every application is running inside a virtual machine. 4.linux kernel (kernel) driver: He was added by Android engineer, interprocess communication, IPC, C code. There is a security issue. dalvik the difference between a virtual machine and a JVM Why not jvm and get a dalvik vm: jvm is designed to consider pc not mobile devices features:1 fast 2 Low power consumption difference: 1 identified files are different &NBSP;&NBSP;&NBSP;&NBSP;JVM:. class file .jar (compressed files many. Class) dalvik vm:.dex file just a file Load all content at once   2 Schema: JVM: Stack-based (memory bar) &NBSP;&NBSP;&NBSP;&NBSP;DALVIK&NBSP;VM: Register-based (CPU) 3 dvm:16m 20m art mode: android runtime :android 4.4 just started. When the application is installed, the. dex file is compiled into a file that the system can recognize. Android system design is not good drop. Based on the virtual machine. &NBSP;SDK directory structure: environment: do not place in Chinese directory or with spaces. directory structure: add-ons:google map & nbsp Docs: Documentation Extras: Extras: Some support packages after upgrade want to be available in a lower version. platforms: Development platform Platfrom-tools: Platform Tools AAPT: Package apps as apk tools adb shell go to Android file system &NBSP;&NBSP;CD&NBSP;&NBSP;/MNT/SDCARD&NBSP;&NBSP;&NBSP;&NBSP;CD&NBSP, .... back to level pwd show current location adb tools:android debug bridge Android Debug Bridge connect phone, simulator Sample: Example sources: Source (only part of the source) Associated source system-images: Image file Install system tools: Tools ADB environment variable Configuration: The directory where the Adb.exe resides is configured in path. &NBSP;ADB directive: adb shell access to Android file system cd /mnt/ sdcard &NBSP;CD&NBSP ... go back to level pwd show current location &NBSP;DDMS using: devices: Device list logcat: Log emulator control: Emulator console file Explorer: File list Android Development Eclipse Project directory structure: android system can not appear in the two package name of the same application. SRC: source java Gen: automatically generated Java files &NBSP ; Android 4.12:Android version Android Dependencies: Android Dependency Pack, support package assets: Asset & nbsp Bin: temporarily generated LIBS: third-party library jar package Res: Resources (automatically compiled in R.java) drawable-hdpi (ldpi,mdpi,xhdpi,xxhdpi): Picture Layout: layouts (XML) VALUES (VALUES-V11,VALUES-V14): string & nbsp Androidmanifest.xml: Manifest file (config file Web. xml) Project.Properties: Configure the app's version number RES directory all resources mapped to R.java file, easy programming application picture and name: packge = XXX: Package name Android:versioncode= "1": Version number, upgrade <application: Application node android:icon= "@drawable/ Ic_launcher: App's icon android:lable= "@string/app_name": Applied title <activity: interface android is component-based development: Based on four components: Activity   Service broadcastreceiver provider &NBSP;J2EE is also component-based development: Based on three main components: servlet & nbsp Filter listener Image display: Graphical layout xml display: Activity_main_xml xml code parsing: xmls:tools = "Http://schemas.android.com/tools": Relative layout android: Layout_width= "match_parent": Layout width android:layout_height= "match_parent": High layout Match_parent: Match parent <textview: Text display control wrap_content: Package content Android:layout_centerhorizontal= "true": Horizontal center android:layout_centervertical= "true": Center vertically android:text= "@string/hellow_world": Shows the flow of content apk build and install: 1. Packaging appt.exe 2. Upload adb 3. Install 4. Start Click event notation: LinearLayout linear layout, orientation: direction <linearlayout Xmlns:andRoid= "Http://schemas.android.com/apk/res/android" xmlns:tools= " Http://schemas.android.com/tools " android:layout_width=" Match_ Parent " android:layout_height=" match_parent " & nbsp android:orientation= "vertical" tools: Context= ". Mainactivity "> hint information, type of restriction: textview,edittext,button & nbsp Find controls: Et_number = (EditText) Findviewbyid (r.id.et_number); &N Bsp bt_dial = (Button) Findviewbyid (r.id.bt_dial); Set listener for button: Bt_di Al.setonclicklistener (New Onclicklistener () {...}) ---> Anonymous internal classes button clicks when calling: public void onClick (View v) {...} Get numbers: String number = Et_number.). Tostrgettext (ing (); Determine if the number is empty: if (textutils.isempty (number)) { ... } Reminder User this: Current class object: Toast toast = Toast.maketext (Mainactivity.this, "pro , number is empty ", Toast.length_long); show: toast.show (); Dialing: There is a dial-up component in the system that already exists, activating the dial-up component inside the phone app: Intent Intent = new Intent ();---> Intent object, Composition: Action and data Set action: intent.setaction (intent.action_call); Data: URI data = Uri.parse ("Tel:" +number); Set data: &N Bsp Intent.setdata (data); activating activity Components: startactivity (Intent) ; Dial-up components require permission, the component is exposed when he asks for such a rightLimit <user-permission android:name= "Android.permission.CALL_PHONE"/> SMS transmitter: How to deploy programs for real-world phones: 1. Prepare a real Android phone 2. Install drivers for mobile 3. Open developer mode 4.run as Common layout (linear, relative, table, Absolute, frame layout) Linear layout: line arlayou t linear layout, orientation: direction relative layout: android:layout_toleltof--> on the left android:layout_ Torightof--> on the right android:layout_above--> above android:layout_below--> below and what to align: android:layout_alignLelt--> left android:layout_alignTop--> Top android:layout_alignRight--> right android:layout_alignBottom--> bottom and parent element: android:layout_alignParentLelt--> left Top of android:layout_alignparenttop--> android:layout_alignParentRight--> Right android:layout_alignParentBottom--> bottom android:layout_centerinparent android:layout_centerHorizontal android:layout_centerVertical wide: & nbsp; android:layout_width High: android: layout_height margin: android:layout_margin Frame layout: Features: one-layer display <FrameLayout></FrameLayout> Layout center: android:layout_gravity= "center" table layout: features: One line, a column <TableLayout></TableLayout> Android:layout_ weight= "1" and weights: Specific gravity android:gravity= "center"--content centered inside controls Absolute layout: NOTE: Do not use <absolutelayout></in development absolutelayout> Common units: &NBSP;DIP px (pixels: Do not use) If the unit is of length: DP & nbsp dip Text size:sp
Android Foundation first day