Introduction to Android Development detailed tutorial

Source: Internet
Author: User

With the mobile development of the fiery, more and more it programmers to move to do mobile development, do the Java EE to do Android development, now let the wheat College Android development teacher to tell you some introductory experience, hope to bring you help.

Tools/Materials

. Jdk,adt,java

Method/Step

1. preparation of development tools :

First tool: JDK1.7,

Second tool: Android Developer tools abbreviation ADT.

The JDK (Java Development Kit) is the Java Language Software Development Kit (SDK) that can be developed with just two tools.

Beginners often fall into the wrong, to download Android Sdk,eclipse online upgrades and the like.

Download ADT Baidu Search "ADT bundle Download", compressed package has nearly 500M size, download good understanding of pressure can be used.

The ADT bundle contains Eclipse, ADT plug-ins, and Sdktools, which are already integrated ides that can be started with the installation of a JDK, and recommend that beginners download ADT bundles without having to toss out the development environment.

2. understanding of development tools:

After the JDK is downloaded, configure the environment variable in the System Properties of window so that ADT can run. ADT (Android Developer tools) is an integrated development environment based on Eclipse, which is plainly the software tool used to develop Android programs.

ADT Bundle for Windows is an integrated IDE, officially provided by Google Android, which already contains eclipse, and you no longer have to download eclipse, and the plugin is integrated It solves the complex problem of most novices configuring the Android development environment through Eclipse. With Adt-bundle, users who are new to Android will no longer have to refer to the cumbersome configuration tutorials on the web as before, making it easy to one step Android app development.

3. Developing process skills:

Android Development learning curve is very steep, more difficult than WinForm, mainly embodied in the development of interface, page optimization, compatibility development, multi-threaded processing.

Android development in the single-threaded model, interface style, etc., personal feeling some similar to the development of the Java EE, to spend a lot of time to write the foreground page and beautify, and then write the background code, a new development of a module is a comparison of time.

Therefore, the development of learning, more contact with some other people's source code, more use of some mainstream app, so in the interface of the optimization of the development of a great help. Reuse other people's resource code in development so that development efficiency can be submitted.

Android's primary development support is weaker than WinForm, the interface parameter configuration can only be modified in the XML file, the parameters panel is mostly read-only.

4. Development of the debugging:

Android development debugging will be more inconvenient, debugging with breakpoints is more difficult, it is recommended that the system comes with the log class log information debugging.

5. Efficient Development:

To speed up responsiveness, you need to move time-consuming operations (such as network requests, database operations, or complex computations) from the main thread to a separate thread.

The most efficient way to do this is to do this at the class level, and you can use Asynctask or intentservice to create a background operation.

Removing time-consuming actions from the UI thread also prevents user actions from appearing in the system not responding (ANR) dialog box.

Android developed a number of third-party frameworks, plugins, such as: Volley, afinal, xutils,acharengine, etc., including network access framework, persistence Framework, IOC framework, picture caching framework and so on.

There are other examples, such as two-dimensional code recognition, OCR recognition, the interaction of various types of sensors, in the development of the best not to repeat the production of wheels, the reuse of ready-made tools will make your development more efficient.

6. secure encryption of the software:

Java bytecode is generally very easy to decompile. In order to protect the Java source code very well, we often confuse the compiled class file. Google has added this tool to the SDK's toolset. Specific path: Sdk\\tools\\proguard.

When you create a new Android project, a proguard configuration file proguard.cfg appears under the root path of the project directory. In other words, we can use the simple configuration to confuse Android engineering directly with Proguard in our Elipse project.

For a practical tutorial on Android app development, go to: Http://www.maiziedu.com/course/android/

Introduction to Android Development detailed tutorial

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.