api sdk android.apk,Tools | Android中文API

The Android SDK includes a variety of tools that help you develop mobile

applications for the Android platform. The tools are classified into two groups: SDK tools

and platform tools. SDK tools are platform independent and are required no matter which

Android platform you are developing on. Platform tools are customized to support the features of the

latest Android platform.

SDK Tools

The SDK tools are installed with the SDK starter package and are periodically updated.

The SDK tools are required if you are developing Android applications. The most important SDK tools

include the Android SDK Manager (android sdk), the AVD Manager (android

avd) the emulator (emulator), and the Dalvik Debug Monitor Server

(ddms). A short summary of some frequently-used SDK tools is provided below.

Lets you manage AVDs, projects, and the installed components of the SDK.

Lets you debug Android applications.

Generates graphical call-stack diagrams from trace log files. The tool uses the

Graphviz Dot utility to create the graphical output, so you need to install Graphviz before

running dmtracedump. For more information on using dmtracedump, see Profiling

with Traceview and dmtracedump

Allows you to easily create a

A QEMU-based device-emulation tool that you can use to design, debug, and test

your applications in an actual Android run-time environment.

Lets you debug and optimize an Android application's user interface.

Converts the HPROF file that is generated by the Android SDK tools to a standard format so

you can view the file in a profiling tool of your choice.

Lets you quickly analyze your application's layouts in order to optimize them for

efficiency.

Helps you create a disk image that you can use with the emulator, to simulate the presence

of an external storage card (such as an SD card).

Runs on your emulator or device and generates pseudo-random streams of user events such

as clicks, touches, or gestures, as well as a number of system-level events. You can use the Monkey

to stress-test applications that you are developing, in a random yet repeatable manner.

Provides an API for writing programs that control an Android device or emulator from

outside of Android code.

Shrinks, optimizes, and obfuscates your code by removing unused code and renaming

classes, fields, and methods with semantically obscure names.

Lets you access the SQLite data files created and used by Android applications.

Provides a graphical viewer for execution logs saved by your application.

Optimizes .apk files by ensuring that all uncompressed data starts with a

particular alignment relative to the start of the file. This should always be used to align .apk

files after they have been signed.

Platform Tools

The platform tools are typically updated every time you install a new SDK platform. Each update

of the platform tools is backward compatible with older platforms. Usually, you directly use only

one of the platform tools—the Android Debug Bridge (adb).

Android Debug Bridge is a versatile tool that lets you manage the state of an emulator instance or

Android-powered device. You can also use it to install an Android application (.apk) file on a

device.

The other platform tools, such as aidl,

aapt, dexdump, and dx, are typically called by the Android

build tools or Android Development Tools (ADT), so you rarely need to invoke these tools directly.

As a general rule, you should rely on the build tools or the ADT plugin to call them as needed.

Note: The Android SDK provides additional shell tools that can

be accessed through adb, such as bmgr and

logcat.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值