Getting started with eclipse android development and getting started with eclipseandroid
1. device window
The window for viewing android running status is consistent with the content of DDMS
2. android. bat
Run the adb operation in the adb path to re-connect the android system
Adb kill-server
Adb start-server
You can also click
3. source override the parent class Method
Override/implement method: a shortcut to override the parent class method
4. eclipse prompt
Window> Preferences> Java> Editor-Content Assist> Auto activation triggers for Java
The Code sets the following content:. abcdefghijklmnopqrstuvwxyz (,
Window> Preferences> Xml Files> Editor> Content Assist> Auto activation> Prompt when these characters are inserted
In xml, the following message is displayed: <=:. abcdefghijklmnopqrstuvwxyz (, <=:. abcdefghijklmnopqrstuvwxyz (,
5. There are three steps to insert a new Activity:
A. Create a new Activity code. Here we use "new. class" as an example.
B. Add the description of the new Activity in AndroidManifest. xml.
C. Call the original Activity to start a new Activity.
6. recompile
Project> clean
7. R File
Rewrite the import android. R path and enter the path according to the local directory.
8. mainfest. xml
<Intent-filter> startup entry
Android: name ="Bind Location PathOr.*"
9. logcat query the running result
Four major android components:
Activity (window)
Service (services, including local services and remote services)
Broadcast Receiver (asynchronous reception of Broadcast Intent, divided into normal Broadcast and ordered Broadcast, to achieve inter-process communication)
Content Provider (Data Type query, android. provider)
Important components:
Intent interactive message (common to four main components)
Bundle data
Android sdk api reference:
Http://www.android-doc.com/
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.