Android developers must master the development tools + 10 should be in-depth study of 10 open source application projects

A, Android developers must master the development tools 10

Android SDK itself contains a lot of help developers design, develop, test and tool release Android applications, in this article, we will discuss the 10 most commonly used tools.

#1: Eclipse ADT

Eclipse ADT Eclipse platform is used to develop Android applications plug-ins.

Eclipse + ADT

#2: The SDK and AVD Manager

The tool contains many important functions, including the management of different versions of Android SDK (build target), you know that many of the Android version, some compatibility problems on API. The tool is also used to manage the addition Android Virtual Device Configuration (AVD), used to configure the simulator.

#3: Android Debug Bridge

adb (Android Debug Bridge) is a common debugging tools provided by Android, with this tool, we can manage the status of the device or mobile phone simulator.

You can also perform the following operations:

1, or to quickly update the phone emulator code devices, such as Android application or system upgrade;
2, run the shell on the device;
3, a predetermined port on the management device or a mobile phone emulator;
4, device or phone simulator copy or paste files;

#4: Dalvik Debug Monitor Server

DDMS stands for Dalvik Debug Monitor Service, which provides us with for example: to see as a test device screenshots for specific processes running thread and stack information, Logcat, broadcast status information, analog phone calls, receiving SMS, virtual geographic coordinates, etc. Wait.

Dalvik Debug Monitor Server

#5: The Android Emulator and Real Devices

一旦你开始开发 Android 程序,那么你一定需要看到程序的运行结果,这就是 Android 的模拟器,可让你在不同的设备上测试 Android 应用的运行效果。

Android Emulator

#6: LogCat

LogCatAndroid中一个命令行工具,可以用于得到程序的log信息。Android日志系统提供了记录和查看系统调试信息的功能。日志都是从各种软件和一些系统的缓冲区中记录下来的,缓冲区可以通过 logcat 命令来查看和使用.

#7: The Hierarchy Viewer

Hierarchy Viewer是随AndroidSDK发布的工具,位置在tools文件夹下,名为hierarchyviewer.bat。它是Android自带的非 常有用而且使用简单的工具,可以帮助我们更好地检视和设计用户界面(UI),绝对是UI检视的利器,但是好像很少有人提它,难道是因为太简单?
具体来说主要功能有2个:

  1. 从可视化的角度直观地获得UI布局设计结构和各种属性的信息,帮助我们优化布局设计;
  2. 结合debug帮助观察特定的UI对象进行invalidate和requestLayout操作的过程。

Android Hierarchy Viewer

#8: Draw 9-Patch

这个九宫格绘画工具(draw9patch.bat)可以让你很容易的通过一个所见即所得(WYS|WYG)的编辑器来创建一个九宫格NinePatch图。

#9: The Monkey Test Tools

Monkey Test Tools 包括 Monkey exerciser tool 和 monkeyrunner 工具,主要用于程序的自动化测试。

#10: ProGuard

ProGuard 是一个免费的 Java类文件的压缩,优化,混肴器。它删除没有用的类,字段,方法与属性。使字节码最大程度地优化,使用简短且无意义的名字来重命名类、字段和方法 。eclipse已经把Proguard集成在一起了。

二、Android开发者应该深入学习的10个开源应用项目

Android开发带来新一轮热潮让很多移动开发者都投入到这个浪潮中去了,创造了许许多多相当优秀的应用。
其中也有许许多多的开发者提供了应用开 源项 目,贡献出他们的智慧和创造力。学习开源代码是掌握技术的一个最佳方式。下面推荐几个应用开源项目,这些项目不仅提供了优秀的创意,也可以直接掌握 Android内核的接口使用.
1.Android团队提供的示例项目
如果不是从学习Android SDK中提供的那些样例代码开始,可能没有更好的方法来掌握在Android这个框架上开发。由Android的核心开发团队提供了15个优秀的示例项 目,包含了游戏、图像处理、时间显示、开始菜单快捷方式等。
地址:http://code.google.com/p/apps-for-android/
2.Remote Droid
RemoteDroid是一个Android应用,能够让用户使用自己的无线网络使用无线键盘、触摸屏操作手机。这个项目为开发者提供了如网络连接、触 摸屏手指运动等很好的样例。
地址:http://code.google.com/p/remotedroid/
3.TorProxy和Shadow
TorProxy应用实现了Android手机无线电电传通讯(TOR),和Shadow应用一起使用,可以使用手机匿名上网。
从该项目源代码中,可以 掌握socket连接、管理cookie等方法。
地址:http://www.cl.cam.ac.uk/research/dtg/code/svn/android-tor/
4、 Android SMSPopup
SMSPopup可以截获短信内容显示在一个泡泡形状的窗口中。从这个项目中可以掌握到如何使用内置的短信SMS接口。
地址:http://code.google.com/p/android-smspopup/
5、 Standup Timer
Standup Timer应用用于控制站立会议时间,类似秒表倒计时,可以提醒每个人的讲话时间已到,从而保证每个与会者使用时间一样。从该项目的代码中,可以学会如何 使用时间函数。另外,这个项目的代码是采用视图view、模型model严格分离的设计思路。
地址:http://github.com/jwood/standup-timer
6、 Foursquare
http://www.javaeye.com/news 3.3 Android开发者应该深入学习的10个开源应用项目第 85 / 155 页是Foursquare.com的一个客户端应用,该应用主要分为两个模块:API(com.joelapenna.foursquare)和界面前端 (com.joelapenna.foursquared)两部分。从该项目代码中,可以学会如何同步、多线程、HTTP连接等技术。
地址:http://code.google.com/p/foursquared/
7、 Pedometer
Pedometer应用用于记录你每天走路步[]数的。尽管记录不一定精准,但是从这个项目中,可以学习几个不同的技术:加速器交互、语音更新、后台运行服 务等。
地址:http://code.google.com/p/pedometer/
8、 OpenSudoku-android
OpenSudoku is a simple squared Sudoku game. From the code you can learn how to display tabular data, as well as a website and how to interact with technology in the view.
Address: http: //code.google.com/p/opensudoku-android
9、 ConnectBot
ConnectBot is a secure shell client application on the Android platform. From the project code, you can learn a lot of content to Android security, you often these are security issues to consider when developing applications.
Address: http: //code.google.com/p/connectbot/
10, WordPress Android app
Of course not fail to mention in the final Wordpress Android application, which is a project official Wordpress development team provides. Can learn from the code XMLRPC calls (of course there are many more great content).
Address: http: //android.svn.wordpress.org/trunk/

Reproduced in: https: //www.cnblogs.com/JoannaQ/p/3145583.html

Guess you like

Origin blog.csdn.net/weixin_34346099/article/details/93056417