Android手机外文翻译---应用程序基础Android Developers

合集下载

外文翻译-计算机安卓

外文翻译-计算机安卓

毕业设计外文翻译英文原文:Try This Run the API Demos Sample ApplicationUsing Eclipse, load the API Demos application as a New Android Project. To do this,select File | New | Project from the Eclipse menu bar; a New Android Project wizardopens. Do not worry about the options in this wizard for now. Simply select CreateProject From Existing Source and browse to the folder with the API Demo applicationin it. When the project is loaded, choose Run to see it execute in the Android Emulator.Navigate your way through the more than 40 different applications. Use eachapplication to become familiar with the terminology and function of each API toolit demonstrates.Hello, Activity!The Hello, Activity! application, shown in the following illustration, is a simple Hello World!–style application. Though simple in its design, Hello, Activity! does a good job of showing off the abilities of the platform. You will create your own Hello World!–style applications in the next chapter.Lunar LanderLunar Lander, shown next, is a small game that plays on the Android Emulator. Lunar Lander shows how a simple 2-D game works on Android. The controls are fairly simple, and the game is not very complex. However, given these drawbacks, it is a great starter for game development. Lunar Lander implements a simple control scheme (Up, Down, Left, and Right).The game also displays relatively fluid graphics and looks impressive given the platform. Complex game theories such as collision detection are used in a simple way. Although this book does not cover programming games for the Android platform, if you are interested in doing so, you may want to look at Lunar Lander for some tipNote PadNote Pad, as shown in the illustration that follows, allows you to open, create, and edit small notes. Note Pad is not a full-featured word editor, so do not expect it to be something to rival Word for Windows Mobile. However, it does a good job as a demonstration tool to show what is possible with a relatively small amount of code.Skeleton AppSkeleton App, shown next, is an application shell. This is more of a base application that demonstrates a couple of different application features, such as fonts, buttons, images, and forms. If you are going to run Skeleton App by itself, you really are not going to get much out of it. You will be better served by referring to Skeleton App as a resource for how to implement specific items.SnakeThe final demo that I included with the Android SDK is Snake. This is a small, SNAFU-style game that is far more simplistic than Lunar Lander. This illustration shows what Snake looks like when run..NOTEIf you navigate to the base folder of each of the sample applications, you will see afolder namedsrc. This is the source code folder for the given sample application. You can use this to view, edit, and recompile the code for any of the applications. Take advantage of this source code to learn some tricks and tips about the Android platform.Android ToolsThe Android SDK supplies developers with a number of powerful and useful tools. Throughout this book, you will use only a handful of them directly. This section takes a quick look at just a few of these tools, which will be covered in much more depth in the following chapters, as you dive into command-line development.NOTEFor more detailed information about the other tools included in the Android SDK, consult the Android doc files.emulator.exeArguably one of the most important tools included in the Android SDK is emulator.exe. emulator.exe launches the Android Emulator. The Android Emulator is used toyou're your applications in a pseudo-Android environment. Given that, as of the writing of this book, there were no hardware devices yet released for the Android platform, emulator.exe is going to be your only means to test applications on a ―native‖ platform.You can run emulator.exe from the command line or execute it from within Eclipse. In this book, you’ll usually let Eclipse launch the Android Emulator environment for you. However, in the interest of giving you all the information you need to program with the Android SDK outside of Eclipse, Chapter 6 covers command-line usage of emulator.exe when you create your Hello World! applications.When using the Android Emulator to test your applications, you have two choices for navigating the user interface. First, the emulator comes with usable buttons, as shown in Figure 4-1. You can use these buttons to navigate Android and any applications that you develop for the platform.TIPThe Power On/Off, V olume Up, and V olume Down buttons are slightly hidden to the sides of the virtual device. They identify themselves when you hover the mouse pointer over them. Given that many higher-end phones now include a touch screen, the second input choice you have when using the emulator is a simulated touch screen. You use your mouse as a stylus. The objects on the emulator’s screen can be interacted with using the mouse.adb.exeAnother tool that will become very useful to you when you are using command-line programming is Android Debug Bridge or adb (adb.exe). This tool allows you to issue commands to the Emulator.exe tool. When you are working in a command-line environment, the adb tool allows you to do the following:● Start and stop the server● Install and uninstall applications● Move files to and from the emulatorMKSDCARD.exeMKSDCARD.exe is a very useful tool if you are testing an application that will need to read or write files to or from an SD Memory Card inserted into the mobile device. MKSDCARD.exe creates a small partition drive on your drive that will hold and retain the test files. The emulator will treat this partition like an SD Memory Card.DX.exeDX.exe is the compiler of the Android SDK. When run against your Java files, DX.exe will create files with .dex extensions—Dalvik executable format. These files are in the correct format to be understood by, and run on, an Android device.NOTEAndroid executable files are called Dalvik executable files as a reference to the Dalvik virtual machine that Android used to run all applications. The Dalvik virtual machine runs each application in its own thread with the same priority as core Android applications. activityCreator(.bat or .pn)activityCreator is a simple command-line tool that is used to set up a basic development environment. When run from the command line, activityCreator will set up the shell files needed to create a basic Android application. Having these shell files is especially useful if you are not using Eclipse. The Android plugin for Eclipse sets up these shell files for you by calling the activityCreator when you create a new project. Depending on what type of environment you are running, you will see the activityCreator represented by a different type of script file. If you are in a Windows environment, this will be a .bat file; otherwise it will be a python (.pn) script. You simply execute the script, which in turn calls the actual activityCreator process with the correct parameters.APIsThe API, or application programming interface, is the core of the Android SDK. An API is a collection of functions, methods, properties, classes, and libraries that is used by application developers to create programs that work on specific platforms. The Android API contains all the specific information that you need to create applications that can work on and interact with an Android-based application.The Android SDK also contains two supplementary sets of APIs—the Google APIs and the Optional APIs. Subsequent chapters will focus much more on these APIs as you begin writing applications that utilize them. For now, take a quick look at what they include so that you are familiar with their uses.Google API sThe Google APIs are included in the Android SDK and contain the programming references that allow you to tie your applications into existing Google services. If you are writing an Android application and want to allow your user to access Google services through your application, you need to include the Google API.Located in the android.jar file, the Google API is contained within the com.google.* package. There are quite a few packages that are included with the Google API. Some of the packages that are shipped in the Google API include those for graphics, portability, contacts, and calendar utilities. However, the packages devoted to Google Maps will be the primary focus in this book. Using the com.google.android.maps package, which contains information for Google Maps, you can create applications that interact seamlessly with the already familiar interface of Google Maps. This one set of packages opens a whole world of useful applications just waiting to be created. The Google API also contains a useful set of packages that allows you to take advantage of the newer Extensible Messaging and Presence Protocol (XMPP) developed by the Jabber open source community. Using XMPP, applications can quickly become aware of other clients’ presence and availability for the purpose of messaging and communications. The API packages dealing withXMPP are very useful if you want to create a ―chat‖-style program that utilizes the phone messaging capabilities.Optional APIsThe Android SDK includes a number of Optional APIs that cover functionality not covered by the standard Android APIs. These Optional APIs are considered optional because they deal with functionality that may or may not be present on a given handset device. That is, some devices created for the Android platform may include upgrades and features that others do not; the Optional APIs cover your programming options when trying to utilize these features in your Android applications.One of these optional features (which you will use later in the book) is a cell-phone-based GPS. The Android LBS (Location-Based Services) API deals with the functionality needed to receive and utilize information from a device’s GPS unit. (Combine the information in the Android LBS API with that in the Google Maps API, and you might have a very useful application that can automatically display a map of where you are located at any given point in time.)Other Optional APIs include those for utilizing Bluetooth, Wi-Fi, playing MP3s, and accessing 3-D—OpenGL-enable hardware.Application Life CycleIf you have a decent amount of experience as an application developer, you are familiar with the concept of an application life cycle. An application life cycle consists of the steps that the application’s processes must follow from execution to termination. Every application, regardless of the language it was written in, has a specific life cycle, and Android applications are no exception. This section examines the life cycle of an ASP application and compares that to an Android application’s life cycle.Standard ASP Application Life CycleThe life cycle of a standard ASP application is similar enough to that of an Android application to make this a good comparison. ASP applications step through five distinct processes from launch to disposal. These steps are required to be implemented by all ASP applications, and really define what an ASP application is. The steps, in order, are1. Application_Start2. Event3. HTTPApplication.Init4. Disposal5. Application_EndChapter 4: Exploring the Android SDK 4950 Android: A P rogrammer’s GuideTIPSome ASP reference materials consider Disposal and Application_End to be one step in the life cycle. However, the Disposal call can be intercepted before it is passed to Application_End. This can allow the application to perform specific functions beforeit is actually destroyed.Application_Start is called when the application is requested from the server. This process in turn leads into the Event process(es). When all associated application modules have loaded, HTTPApplication.Init is called. The application executes its events, and when the user attempts to close it, Dispose is called. Dispose then passes processing on to the Application_End process,which closes the application.This is a fairly standard application life cycle. Most applications follow similar life cycles: an application is created, loaded, has events, and is destroyed. The following section demonstrates how this compares to the Android application life cycle.Android Application Life CycleThe Android application life cycle is unique in that the system controls much of the life cycle of the application. All Android applications, or Activities, are run within their own process. All of the running processes are watched by Android and, depending on how the activity is running (this is, a foreground activity, background activity, and so forth), Android may choose to end the activity to reclaim needed resources.NOTEWhen deciding whether an activity should be shut down, Android takes into account several factors, such as user input, memory usage, and processing time.Some of the specific methods called during the life cycle of an android activity are● onCreate● onStart● Process-specific events (for example: launching activities or accessing a database)● onStop● onDes troyFollowing the same logic as other application life cycles, an Android application is created, the processes are started, events are fired, processes are stopped, and the application is destroyed. Though there are a few differences, many application developers should be comfortable with the steps in the life cycle.文献出处:DiMarzio,J.F.Android: A Programmer's Guide[M].McGraw-Hill Prof Med/Tech, 2008:41-50译文:运行API样本示例应用程序使用Eclipse,装载API示例应用现场作为一个Android项目。

安卓内置程序中英对照

安卓内置程序中英对照

首先需要root文件管理器,其次手机需要取得root权限,有root权限后,直接用文件管理进入/system /app 里删除对应的.apk。

*Accountprovider账号管理器ApkManager.apk APK安装器(即N多安装器)advancedsettings.apk高级设置AlarmClock闹钟AndroidSyncService系统同步服务AndroidUI索尼爱立信X10UI界面程序appinstaller.apk app安装器*ApplicationsProvider程序管理器AutoSettingDispatcher自动设置修补bootinfo启动信息Bluetooth.apk蓝牙(删了就没有蓝牙了)Browser自带浏览器Bugreport.apk Bug报告btoppservice蓝牙设置服务Calculator系统自带计算器Calendar系统自带日历程序CalendarProvider系统自带日历管理器*Camera系统自带相机CapabilitySetupReceiver接收器安装能力*CertInstaller.apk证书服务CdfInfoAccessor CDF信息访问器*Contacts联系人储存CredMgrService CredMgr服务*DefaultContainerService.apk默认通讯录服务DeskClock.apk自带闹钟(用第三方闹钟的可删)DigitalClock数字时钟*DownloadProvider下载管理器*DrmProvider DRM信息管理器SPManager.apk DSP音频管理(兴哥集成在设置里面,我不太使用这个,删了EMAIL伊妹儿。

Emeual(干什么用的我毫不知情)EnhancedGooglesearchProvider增强谷歌搜索管理器Fcebook非死不可FaceRecognition脸部识别程序(MS里面看照片的时候可以关联联系人)filemanager.apk文件管理FileCopier文件复制器Fota FOTA解决方案Generic-app-Installer全球版的APK安装器GlobalSearch全球搜索Gmail谷歌MAILGmailProvider GMAIL管理器Gallery3D.apk 3D浏览器(嫌弃它速度慢的,可删)GenieWidget.apk天气与新闻(我自己不用他看新闻,删了)GoogleApps谷歌程序googlebackuptransport.apkgooglecheckin.apkgooglecheckinhelper.apkGoogleFeedback.apk***(据说删除后开机会提示googlefeedback.apk,不过我删了没什么副作用)googlepartnersrtup.apk Google助手(删了没感觉有特殊)GoogleCalendarSyncAdapter.apk存储日历信息(删了没感觉有特殊)GoogleContactsSyncAdapter.apk存储联系人信息(怕影响到联系人未删,但兴哥精简版已经删了)GoogleCheckin谷歌签入程序GoogleContactsProvider谷歌联系人管理器GooglePartnerSetup谷歌好友设置GoogleSearch谷歌搜索GoogleQuickSearchBox.apk谷歌搜索(删了影响到桌面的搜索插件)GoogleServicesFramework.apk同步支持服务(删了不能同步联系人,不能登录google)GoogleSettingProvider谷歌设置管理器GoogleSubscribedFeedsProvider谷歌同步管理器GooglePinyinIME.apk Google拼音(用其他输入法的可删)gtalkservice GTALK服务HTMLViewer HTM查看器hidialer.apk 智能拨号himarket.apk 安卓市场kickback.apk辅助功能LearningClientLauncher2.apk 2.2原生桌面(用ADW和PRO的可删,删了以后第三方桌面要在开机以后从电脑安装,91,豌豆助手都可)LiveWallpapersPicker.apk 动态壁纸(可删,反正G2跑起来不怎么样)im.apk即使通讯组件包含MSN、yahoo通implugin.apkImProvider gtalk管理器Launcher主页面程序MAPS谷歌地图MarketUpdater电子市场更新程序*MediaProvider媒体管理器Mediascape大名鼎鼎的MediascapeMediascapePluginManager Media插件管理器MediaUploader媒体更新器Metadatacleanup元数据清除器MMS短信和彩信程序Moixer 烦人的moixer程序NUSIC原生音乐播放器nDuoaDialer.apk N多拨号(可删,自带的就可以了)nDuoaMarket.apk N多市场(可删,电子市场对我够了)nDuoaSettings.apk N多设置组件1(最好不要删,很不错的高级设置,兴哥集成在了设置里面)nDuoaSettingsAddon.apk N多设置组件2(最好不要删,很不错的高级设置)nDuoaSettingsHelper.apk N多设置组件3(最好不要删,很不错的高级设置)NetworkLocation纵横程序,显示地点officesuite office套件,可看PDFOneTimeInitializer.apk***(不明物体,删了没什么副作用)*PackgeInstaller APK安装器PcCompanionInstaller PcCompanion的安装程序,在设置>应用程序>里面就有勾选的选项*Phone电话程序Phonebook电话簿PhoneGuard.apk拨号卫士(可删,类似来电通等的)PicoTts语音程序Playnowarena PLAY NOW程序Playnowarena_updater PLAY NOW的更新程序PNPWizard PNP设置向导PrisonBreak.apk越狱(翻qiang用的)Protips.apk***(不明物体,删了无副作用)*QuickMgr.apk一键设置(长按menu的后弹出的那个,不要删,删了以后长安menu会FC)Readsdcard TF卡的系统读取程序se-support-rachael索尼爱立信的帮助程序SemcCameraApplication SE照相机增强程序(给自带的照相机加入各种模式)SemcIme系统自带输入法SemcSetupWiazard索尼爱立信设置向导SEMCTouchPalChinese索尼爱立信中文触摸输入法SEMCTouchPalKrea索尼爱立信韩语触摸输入法ServiceMenu服务菜单*Setting设置程序*SettingProvider设置管理器(储存手机设置里的一些设定)*SetupWizard第一次开机的开机向导SnsContactImageCacheProvider SNS联系人头像缓存管理器SMSPopup.apk短信泡泡(就是短信来时弹出的那个,其实就是个弹出框架,可用chomp 替换)soundback.apk辅助功能(可删)SoundRecorder录音机STK SIM卡工具Street谷歌地图的街景模式*superuser.apk超级用户systemupdater.apk系统升级TALK gtalk主体程序(可删,删了没有电子市场上)*TelephonyProvider电话管理器Timescape大名鼎鼎的TimesacpeTimescapePluginManager Timescape插件管理器TimescapeProivder Timescape管理器TimesacpeTheme****各种颜色的Timescape主题TrackID有名的TrackIDTerm.apk超级终端(可删,不过不建议,可以用来刷recovery)TtsService语音输入服务Updater.apk在线升级(可删)UserDictionaryProvider用户字典管理器(就是系统自带输入法的用户自定义词组管理器)Vending电子市场VoiceDialer语音拨号程序VoiceSearch语音搜索程序VpnService虚拟专用网服务WebMediaProvider网页媒体管理器Wiper擦除数据程序(恢复出厂设置用的)YouTube大名鼎鼎的Youtube客户端删除不必要的程序,可以增加手机内存顶帖子是为了让更多的朋友看到,好东西要分享!谢谢!注意:带*的千万不要删!!!切记!!!。

Android开发指南设计中文版

Android开发指南设计中文版

Android开发指南中文版‐应用程序框架Android Developers本文是对Android SDK1.5版的英文开发资料Android Development Guide一文应用程序框架部分的翻译,覆盖了Android应用开发所有主要的概念。

部分内容整理自网络。

本文仅用于技术学习,请勿用于商业用途。

目录应用程序基础ApplicationFundamentals (4)关键类............................................................................ (4)应用程序组件............................................................................ (5)激活组件:intent........................................................................ (7)关闭组件............................................................................ (7)manifest文件............................................................................ (8)Intent过滤器............................................................................ (8)Activity和任务............................................................................ (10)Affinity(吸引力)和新任务 (11)加载模式............................................................................ (12)清理堆栈............................................................................ (13)启动任务............................................................................ (14)进程和线程............................................................................ (14)进程............................................................................ (15)线程............................................................................ (15)远程过程调用............................................................................ (15)线程安全方法............................................................................ (16)组件生命周期............................................................................ (17)Activity生命周期............................................................................ (17)调用父类............................................................................ (18)服务生命周期............................................................................ (21)广播接收器生命周期............................................................................ (22)进程与生命周期............................................................................ (22)用户界面User Interface..................................................................... (24)视图层次View Hierarchy..................................................................... (24)布局Layout........................................................................ (25)部件Widgets....................................................................... (26)用户界面事件UI Events........................................................................ (26)菜单Menus......................................................................... (26)高级话题Advanced Topics........................................................................ (27)适配器Adapter....................................................................... (27)风格与主题Styles and Themes (27)资源和资产Resources and Assets (28)资源引用Resource Reference.....................................................................43国际化和本地化Internationalization andLocalization (43)意图和意图过滤器Intents and IntentFilters (43)意图过滤器Intent filters....................................................................... (47)通常情况Common cases..........................................................................51使用意图匹配Using intentmatching (52)数据存储Data Storage....................................................................... (52)概览Storagequickview..................................................................... (52)系统偏好:快速,轻量级存储 (52)文件:存储到设备内部或可移动闪存 (52)数据库:任意的结构化存储 (52)支持基于网络的存储............................................................................ (52)系统偏好Preferences................................................................... (53)文件Files......................................................................... (54)数据库Databases..................................................................... (54)网络Network....................................................................... (55)内容提供器Content Providers..................................................................... (55)内容提供器的基础知识Content ProviderBasics (55)查询一个内容提供器Querying a ContentProvider (57)修改数据Modifying Data.......................................................................... (61)创建一个内容提供器Creating a ContentProvider (64)Content URI 总结............................................................................ (67)清单文件The AndroidManifest.xmlFile (68)清单文件结构Structure of the ManifestFile (68)文件约定File Conventions................................................................... (70)文件特性File Features...................................................................... (73)应用程序基础Application Fundamentals关键类1. Activity2. Service3. BroadcastReceiver4. ContentProvider5. IntentAndroid应用程序使用Java做为开发语言。

外文翻译--Android起航

外文翻译--Android起航

外文原文Beginning AndroidMark L. Murphy writeUsing XML-Based LayoutsW hile it is technically possible to create and attach widgets to our activity purely through Java code, the way we did in Chapter 4, the more common approach is to use an XML-based layout file. Dynamic instantiation of widgets is reserved for more complicated scenarios, where the widgets are not known at compile-time (e g., populating a column of radio buttons based on data retrieved off the Internet).With that in mind, it’s time to brea k out the XML and learn how to lay out Android activities that way.What Is an XML-Based Layout?As the name suggests, an XML-based layout is a specification of widgets’ relationships to each other—and to their containers (more on this in Chapter 7)—encoded in XML format. Specifically, Android considers XML-based layouts to be resources, and as such layout files are stored in the res/layout directory inside your Android project.Each XML file contains a tree of elements specifying a layout of widgets and their containers that make up one view hierarchy. The attributes of the XML elements are properties, describing how a widget should look or how a container should behave. For example, if a Button element has an attribute value of android:textStyle = "bold", that means that the text appearing on the face of the button should be rendered in a boldface font style.Android’s SDK ships with a tool (aapt) which uses the layouts. This tool should be automatically invoked by your Android tool chain (e.g., Eclips e, Ant’s build.xml). Of particular importance to you as a developer is that aapt generates the R.java source file within your project, allowing you to access layouts and widgets within those layouts directly from your Java code.Why Use XML-Based Layouts?Most everything you do using XML layout files can be achieved through Java code. For example, you could use setTypeface() to have a button render its text in bold, instead of using a property in an XML layout. Since XML layouts are yet another file for you to keep track of, we need good reasons for using such files.Perhaps the biggest reason is to assist in the creation of tools for view definition, such as a GUI builder in an IDE like Eclipse or a dedicated Android GUI designer like DroidDraw1. Such GUI builders could, in principle, generate Java code instead of XML. The challenge is re-reading the UI definition to support edits—that is far simpler if the data is in a structured format like XML than in a programming language. Moreover, keeping generated XML definitions separated from hand-written Java code makes it less likely that somebody’s custom-crafted source will get clobbered by accident when the generated bits get re-generated. XML forms a nice middle ground between something that is easy for tool-writers to use and easy for programmers to work with by hand as needed.Also, XML as a GUI definition format is becoming more commonplace. Microsoft’s XAML2, Adobe’s Flex3, and Mozilla’s XUL4all take a similar approach to that of Android: put layout details in an XML file and put programming smarts in source files (e.g., JavaScript for XUL). Many less-well-known GUI frameworks, such as ZK5, also use XML for view definition. While “following the herd” is not necessarily the best policy, it does have the advantage of helping to ease the transition into Android from any other XML-centered view description language.OK, So What Does It Look Like?Here is the Button from the previous chapter’s sample application, converted into an XMLlayout file, found in the Layouts/NowRedux sample project. This code sample along with all others in this chapter can be found in the Source Code area of .<?xml version="1.0" encoding="utf-8"?><Button xmlns:android="/apk/res/android"android:id="@+id/button"android:text=""android:layout_width="fill_parent"android:layout_height="fill_parent"/>The class name of the widget—Button—forms the name of the XML element. Since Button is an Android-supplied widget, we can just use the bare class name. If you create your own widgets as subclasses of android.view.View, you would need to provide a full package declara tion as well.The root element needs to declare the Android XML namespace:xmlns:android="/apk/res/android"All other elements will be children of the root and will inherit that namespace declaration.Because we want to reference this button from our Java code, we need to give it an identifier via the android:id attribute. We will cover this concept in greater detail later in this chapter.The remaining attributes are properties of this Button instance:• android:text indicates the initial text to be displayed on the button face (in this case, an empty string)• android:layout_width and andr oid:layout_height tell Android to have the button’swidth and height fill the “parent”, in this case the entire screen—these attributes will be covered in greater detail in Chapter 7.Since this single widget is the only content in our activity, we only need this single element. Complex UIs will require a whole tree of elements, representing the widgets and containers that control their positioning. All the remaining chapters of this book will use the XML layout form whenever practical, so there are dozens of other examples of more complex layouts for you to peruse from Chapter 7 onward.What’s with the @ Signs?Many widgets and containers only need to appear in the XML layout fileand do not need to be referenced in your Java code. For example, a static label (TextView) frequently only needs to be in the layout file to indicate where it should appear. These sorts of elements in the XML file do not need to have the android:id attribute to give them a name.Anything you do want to use in your Java source, though, needs an android:id.The convention is to use @+id/... as the id value, where the ... represents your locallyunique name for the widget in question. In the XML layout example in the preceding section, @+id/button is the identifier for the Button widget.Android provides a few special android:id values, of the form @android:id/.... We will see some of these in various chapters of this book, such as Chapters 8 and 10.We Attach These to the Java How?Given that you have painstakingly set up the widgets and containers in an XML layout filenamed main.xml stored in res/layout, all you need is one statement in your activity’s onCreate() callback to use that layout:setContentView(yout.main);This is the same setContentView() we used earlier, passing it an instance of a View subclass (in that case, a Button). The Android-built view, constructed from our layout, is accessed from that code-generated R class. All of the layouts are accessible under yout, keyed by the base name of the layout file—main.xml results in yout.main.To access our identified widgets, use findViewById(), passing in the numeric identifier of the widget in question. That numeric identifier was generated by Android in the R class asR.id.something (where something is the specific widget you are seeking). Those widgets are simply subclasses of View, just like the Button instance we created in Chapter 4.The Rest of the StoryIn the original Now demo, the button’s face would show the current time, which would reflect when the button was last pushed (or when the activity was first shown, if the button had not yet been pushed).Most of that logic still works, even in this revised demo (NowRedux). However, rather than instantiating the Button in our activity’s onCreate() c allback, we can reference the one from the XML layout:package youts;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.widget.Button; import java.util.Date;public class NowRedux extends Activity implements View.OnClickListener { Button btn;@Overridepublic void onCreate(Bundle icicle) { super.onCreate(icicle);setContentView(yout.main);btn=(Button)findViewById(R.id.button);btn.setOnClickListener(this);upda teTime();}public void onClick(View view) { updateTime();}private void updateTime() {btn.setText(new Date().toString()); }}The first difference is that rather than setting the content view to be a view we created in Java code, we set it to reference the XML layout (setContentView(yout.main)). The R.java source file will be updated when we rebuild this project to include a reference to our layout file (stored as main.xml in our project’s res/layout directory).The other difference is that we need to get our hands on our Button instance, for which we use the findViewById() call. Since we identified our button as@+id/button, we can reference the button’s identifier as R.id.button. Now, with the Button instance in hand, we can set the callback and set the label as needed.As you can see in Figure 5-1, the results look the same as with the original Now demo.Figure 5-1. The NowRedux sample activityEmploying Basic WidgetsE very GUI toolkit has some basic widgets: fields, labels, buttons, etc. Android’s toolkit is no different in scope, and the basic widgets will provide a good introduction as to how widgets work in Android activities.Assigning LabelsThe simplest widget is the label, referred to in Android as a TextView. Like in most GUI toolkits, labels are bits of text not editable directly by users. Typically, they are used to identify adjacent widgets (e.g., a “Name:” label before a field where one fills in a name).In Java, you can create a label by creating a TextView instance. More commonly, though, you will create labels in XML layout files by adding a TextView element to the layout, with an android:text property to set the value of the label itself. If you need to swap labels based on certain criteria, such as internationalization, you may wish to use a resource reference in the XML instead, as will be described in Chapter 9. TextView has numerous other properties of relevance for labels, such as:• android:typeface to set the typeface to use for the label (e.g., monospace)• an droid:textStyle to indicate that the typeface should be made bold (bold), italic (italic),or bold and italic (bold_italic)• android:textColor to set the color of the label’s text, in RGB hex format (e.g., #FF0000 for red)For example, in the Basic/Label project, you will find the following layout file:<?xml version="1.0" encoding="utf-8"?><TextView xmlns:android=/apk/res/androidandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:text="You were expecting something profound?" />As you can see in Figure 6-1, just that layout alone, with the stub Java source provided by Android’s project builder (e.g., activityCreator), gives youthe application.Figure 6-1. The LabelDemo sample applicationButton, Button, Who’s Got the Button?We’ve already seen the use of the Button widget in Chapters 4 and 5. As it turns out, Button is a subclass of TextView, so everything discussed in the preceding section in terms of formatting the face of the button still holds. Fleeting ImagesAndroid has two widgets to help you embed images in your activities: ImageView and ImageButton. As the names suggest, they are image-based analogues to TextView and Button, respectively.Each widget takes an android:src attribute (in an XML layout) to specify what picture to use. These usually reference a drawable resource, described ingreater detail in the chapter on resources. You can also set the image content based on a Uri from a content provider via setImageURI().ImageButton, a subclass of ImageView, mixes in the standard Button behaviors, for responding to clicks and whatnot.For example, take a peek at the main.xml layout from the Basic/ImageView sample project which is found along with all other code samples at :<?xml version="1.0" encoding="utf-8"?><ImageView xmlns:android=/apk/res/androidandroid:id="@+id/icon"android:layout_width="fill_parent"android:layout_height="fill_parent"android:adjustViewBounds="true"android:src="@drawable/molecule" />The result, just using the code-generated activity, is shown in Figure 6-2.Figure 6-2. The ImageViewDemo sample applicationFields of Green. Or Other Colors.Along with buttons and labels, fields are the third “anchor” of most GUI toolkits. In Android, they are implemented via the EditText widget, which is a subclass of the TextView used for labels.Along with the standard TextView properties (e.g., android:textStyle), EditText has many others that will be useful for you in constructing fields, including:• android:autoText, to control if the field should provide automatic spelling assistance• androi d:capitalize, to control if the field should automatically capitalize the first letter of entered text (e.g., first name, city)• android:digits, to configure the field to accept only certain digits• android:singleLine, to control if the field is for single-line input or multiple-line input (e.g., does <Enter> move you to the next widget or add a newline?)Beyond those, you can configure fields to use specialized input methods, such asandroid:numeric for numeric-only input, android:password for shrouded password input,and android:phoneNumber for entering in phone numbers. If you want to create your own input method scheme (e.g., postal codes, Social Security numbers), you need to create your own implementation of the InputMethod interface, then configure the field to use it via android: inputMethod.For example, from the Basic/Field project, here is an XML layout file showing an EditText:<?xml version="1.0" encoding="utf-8"?><EditTextxmlns:android=/apk/res/androidandroid:id="@+id/field"android:layout_width="fill_parent"android:layout_height="fill_parent"android:singleLine="false" />Note that android:singleLine is false, so users will be able to enter in several lines of text. For this project, the FieldDemo.java file populates the input field with some prose:package monsware.android.basic;import android.app.Activity;import android.os.Bundle;import android.widget.EditText;public class FieldDemo extends Activity { @Overridepublic void onCreate(Bundle icicle) { super.onCreate(icicle);setContentView(yout.main);EditText fld=(EditText)findViewById(R.id.field);fld.setText("Licensed under the Apache License, Version 2.0 " + "(the \"License\"); you may not use this file " + "except in compliance with the License. You may " + "obtain a copy of the License at " +"/licenses/LICENSE-2.0");}}The result, once built and installed into the emulator, is shown in Figure 6-3.Figure 6-3. The FieldDemo sample applicationNote Android’s emulator only allows one application in the launcher per unique Java package. Since all the demos in this chapter share the monsware.android.basic package, you will only see one of these demos in your emulator’s launcher at any one time.Another flavor of field is one that offers auto-completion, to help users supply a value without typing in the whole text. That is provided in Android as the AutoCompleteTextView widget and is discussed in Chapter 8.Just Another Box to CheckThe classic checkbox has two states: checked and unchecked. Clicking the checkbox toggles between those states to indicate a choice (e.g., “Add rush delivery to my order”). In Android, there is a CheckBox widget to meet this need. It has TextView as an ancestor, so you can use TextView properties likeandroid:textColor to format the widget. Within Java, you can invoke: • isChecked() to determine if the checkbox has been checked• setChecked() to fo rce the checkbox into a checked or unchecked state• toggle() to toggle the checkbox as if the user checked itAlso, you can register a listener object (in this case, an instance of OnCheckedChangeListener) to be notified when the state of the checkbox changes.For example, from the Basic/CheckBox project, here is a simple checkbox layout:<?xml version="1.0" encoding="utf-8"?><CheckBox xmlns:android="/apk/res/android"android:id="@+id/check"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="This checkbox is: unchecked" />The corresponding CheckBoxDemo.java retrieves and configures the behavior of the checkbox:public class CheckBoxDemo extends Activityimplements CompoundButton.OnCheckedChangeListener { CheckBox cb;@Overridepublic void onCreate(Bundle icicle) { super.onCreate(icicle);setContentView(yout.main);cb=(CheckBox)findViewById(R.id.check);cb.setOnCheckedChangeListener(this);}public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) {if (isChecked) {cb.setText("This checkbox is: checked");}else {cb.setText("This checkbox is: unchecked");}}}Note that the activity serves as its own listener for checkbox state changes since it imple ments the OnCheckedChangeListener interface (via cb.setOnCheckedChangeListener(this)). The callback for the listener is onCheckedChanged(), which receives the checkbox whose state has changed and what the new state is. In this case, we update the text of the checkbox to reflect what the actual box contains.The result? Clicking the checkbox immediately updates its text, as you can see in Figures 6-4 and 6-5.Figure 6-4. The CheckBoxDemo sample application, with the checkbox uncheckedFigure 6-5. The same application, now with the checkbox checkedTurn the Radio UpAs with other implementations of radio buttons in other toolkits, Android’s radio buttons are two-state, like checkboxes, but can be grouped such that only one radio button in the group can be checked at any time.Like CheckBox, RadioButton inherits from CompoundButton, which in turn inherits fromTextView. Hence, all the standard TextView properties for font face, style, color, etc., are available for controlling the look of radio buttons. Similarly, you can call isChecked() on a RadioButton to see if it is selected, toggle() to select it, and so on, like you can with a CheckBox.Most times, you will want to put your RadioButton widgets inside of aRadioGroup. The RadioGroup indicates a set of radio buttons whose state is tied, meaning only one button out of the group can be selected at any time. If you assign an android:id to your RadioGroup in your XML layout, you can access the group from your Java code and invoke:• check() to c heck a specific radio button via its ID (e.g., group.check(R.id.radio1))• clearCheck() to clear all radio buttons, so none in the group are checked• getCheckedRadioButtonId() to get the ID of the currently-checked radio button (or -1 if none are checked)For example, from the Basic/RadioButton sample application, here is an XML layout showing a RadioGroup wrapping a set of RadioButton widgets: <?xml version="1.0" encoding="utf-8"?> <RadioGroupxmlns:android=/apk/res/androidandroid:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent" ><RadioButton android:id="@+id/radio1"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Rock" /><RadioButton android:id="@+id/radio2"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Scissors" /><RadioButton android:id="@+id/radio3"android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="Paper" /></RadioGroup>Figure 6-6 shows the result using the stock Android-generated Java forthe project and this layout.Figure 6-6. The RadioButtonDemo sample application Note that the radio button group is initially set to be completely unchecked at the outset. To pre-set one of the radio buttons to be checked, use either setChecked() on the RadioButton or check() on the RadioGroup from within your onCreate() callback in your activity.It’s Quite a ViewAll widgets, including the ones previously shown, extend View, and as such give all widgets an array of useful properties and methods beyond those already described.Useful PropertiesSome of the properties on View most likely to be used include:• Controls the focus sequence:• android:nextFocusDown• android:nextFocusLeft• android:nextFocusRight• android:nextFocusUp• android:visibility, which controls whether the widget is initially visible• android:background,which typically provides an RGB color value (e.g., #00FF00 for green) to serve as the background for the widgetUseful MethodsYou can toggle whether or not a widget is enabled via setEnabled() and see if it is enabled via isEnabled(). One common use pattern for this is to disable some widgets based on a CheckBox or RadioButton selection.You can give a widget focus via requestFocus() and see if it is focused via isFocused(). You might use this in concert with disabling widgets as previously mentioned, to ensure the proper widget has the focus once your disabling operation is complete.To help navigate the tree of widgets and containers that make up an activity’s overall view, you can use:• getParent() to find the parent widget or container• findVi ewById() to find a child widget with a certain ID• getRootView() to get the root of the tree (e.g., what you provided to the activity via setContentView())中文译文Android起航使用XML进行布局虽然纯粹通过Java代码在activity上创建和添加部件,在技术上是可行的,我们在第4章中做的一样,更常见的方法是使用一种基于XML的布局文件。

有关android技术英文文献翻译(同名6369)

有关android技术英文文献翻译(同名6369)

Application FundamentalsAndroid applications are written in the Java programming language. The compiled Java code —along with any data and resource files required by the application —is bundled by the aapt tool into an Android package, an archive by an .apk suffix. This the vehicle for distributing the application and installing it on mobile devices; it's the download to their devices. All the code in a single .apk considered to be one application.Android应用基础:Android应用程序是通过java语言开发的,通过绑定一些应用所需要的东西,例如:编译的Java代码,加上数据和一些资源文件,使用一个apt的工具将所有的东西封装成一个android包,这个文件的文件后缀是.apk。

这个文件是分发并安装应用程序到移动设备的载体,是用户获得该应用程序所需要的下载的文件。

Application Components A central feature of Android is that one application can make use of elements of other applications (provided those applications permit it). For example, if your application needs to display a scrolling list of images and another application has developed a suitable scroller and made it available to others, you can call upon that scroller to do the work, rather than develop your own. Your application doesn't incorporate the code of the other application or link to it. Rather, it simply starts up that piece of the other application when the need arises. For this to work, the system must be able to start an application process when any part of it is needed, and instantiate the Java objects for that part. Therefore, unlike applications on most other systems, Android applications don't have a single entry point for everything in the application (no main() function, for example). Rather, they have essential components that the system can instantiate and run as needed. There are four types of components:Activities An activity presents a visual user interface for one focused endeavor the user can undertake. For example, an activity might present a list of menu items users can choose from or it might display photographs along with their captions. A text messaging application might have one activity that shows a list of contacts to send messages to, a second activity to write the message to the chosen contact, and other activities to review old messages or change settings. Though they work together to form a cohesive user interface, each activity isindependent of the others. Each one is implemented as a subclass of the Activity base class. An application might consist of just one activity or, like the text messaging application just mentioned, it may contain several. What the activities are, and how many there are depends, of course, on the application and its design. Typically, one of the activities is marked as the first one that should be presented to the user when the application is launched. Moving from one activity to another is accomplished by having the current activity start the next one. Android有四大应用程序组件Android的一个很重要的中心特征就是一个应用程序能充分利用其他的应用程序的一些组件(前提是被允许的)例如:如果的当前开发的应用需要一个滚动的列表去展示相片并且当时其他的程序已经开发了一个合适的滚动列表并且对其他人可用,你可以调用这个滚动的列表来完成你的工作而不是开发你自己的。

Android基础常用英语汇总

Android基础常用英语汇总

Android基础常用英语汇总Day01单词activity[ækˈtɪvəti] 活动;活跃framework[ˈfreɪmwɜ:k] 框架;构架;(体系的)结构;机构,组织driver[ˈdraɪvə(r)] 驱动器,驱动程序virtual[ˈvɜ:tʃuəl] 虚拟的kernel[ˈkɜ:nl] 核心,内核,要点kernelplatform[ˈplætfɔ:m] 平台,纲领platformpreferences['prefərənsɪs] 参数,偏好launcher[ˈlɔ:ntʃə(r)] 发射器,启动器emulator [ˈemjul eɪtə(r)] 模拟器,仿真器,仿真程序bundl e[ˈbʌndl] 捆,一批generate[ˈdʒenəreɪt] 生成,形成,造成asset[ˈæset]资产,财产manifest[ˈmænifest]清单,货单intent[ɪnˈtent]意图,目的relative[ˈrelətɪv] 相对的,相关的linear[ˈlɪniə(r)] 直线的,线形的absolute[ˈæbsəlu:t] 绝对的,完全的orientation[ˌɔ:riənˈteɪʃn] 方向,朝向,取向horizontal[ˌhɒrɪˈzɒntl] 水平的,地平线的vertical[ˈvɜ:tɪkl] 垂直的,竖立的align [əˈlaɪn] 排列,使成一线density[ˈdensəti] 密度wrap[ræp] 包裹,缠绕ind ependent[ˌɪndɪˈpendənt] 自主的,独立的,不相关连的layout[ˈl eɪaʊt] 布局,安排,设计internal[ɪnˈtɜ:nl] 内部的,国内的storage[ˈstɔ:rɪdʒ] 存储,贮存Day02 单词l og[lɔ:g] 日志,记录filter[ˈfɪltə(r)] 过滤器,滤波器verbose[vɜ:ˈbəʊs] 冗长的,啰唆的verbose external[ɪkˈstɜ:nl] 外面的,外部的externaleditor[ˈedɪtə(r) 编辑程序,编辑器editor serializer['sɪərɪəlaɪzər] 可序列化的,序列化器serializer parser['pɑ:sə]解析器,解剖器environment[ɪnˈvaɪrənmənt]环境,(运行)环境component[kəmˈpəʊnənt] 成分,组建compound[ˈkɒmpaʊnd] 复合物,组合物specify[ˈspesɪfaɪ] 指定,定义declare[dɪˈkleə(r)] 声明,宣布mount[maʊnt] 挂载,攀登Day03 单词cursor[ˈkɜ:sə(r)] 光标,游标journal[ˈdʒɜ:nl] 日报,日志primary[ˈpraɪməri] 首要的,主要的alter[ˈɔ:ltə(r)] 改变,修改mod el[ˈmɒdl] 模型,模式adapter[ə'dæptə] 适配器convert[kənˈvɜ:t] 转换,转变inflate[ɪnˈfl eɪt] 充气,打气dial og['daɪəlɒg] 会话,对话alert[əˈlɜ:rt] 警告,警报positive[ˈpɒzətɪv] 积极的,确实的,肯定的negative[ˈnɛɡətɪv] 消极的,否定的transaction[trænˈzækʃn] 交易,业务,事务styl e[staɪl] 样式,风格theme[θi:m]主题,主旋律Day04 单词connection[kəˈnekʃn] 连接,联系handl er[ˈhændlə(r)] 处理者,管理者queue[kju:] 队列l ooper['lu:pə] 轮询器obtain[əbˈtein]获得,得到bitmap[ˈbɪtmæp] 位图agent[ˈedʒənt] 代理,代理人notation[noʊˈteɪʃn] 记号,标记法visible [ˈvɪzəbəl] 显示的,可见的gone[gɒn] 过去的,消失的singl e[ˈsɪŋgl]唯一的,单一的smart[smɑ:t]聪明的,敏捷的Day05 单词property[ˈprɒpəti] 属性,特性asynchronous[eɪˈsɪŋkrənəs] 异步的failure[ˈfeɪljə(r)] 失败的,不及格的random[ˈrændəm] 随机的block[blɒk] 区块儿total[ˈtəʊtl] 总共,总计execute[ˈeksɪkju:t] 执行entity[ˈentəti] 实体pair[peə(r)] 一副,一对range[reɪndʒ] 范围,射程manner[ˈmænə(r)] 方式current[ˈkʌrənt] 当前的,现在的Day06 单词filter[ˈfɪltə(r)] 过滤器,滤波器category[ˈkætəgəri] 类型,种类feature[ˈfi:tʃə(r)] 特征,特点extra[ˈekstrə] 额外的cycle[ˈsaɪkl] 循环,周期pause[pɔ:z] 暂停,中止resume[rɪ'zju:m] 继续destroy[dɪˈstrɔɪ] 摧毁,销毁entire[ɪnˈtaɪə(r)] 完整的,全部的foreground[ˈfɔ:graʊnd] 前台,前景navigate[ˈnævɪgeɪt] 航行,驾驶priority[praɪˈɒrəti] 优先级stack[stæk] 栈instance[ˈɪnstəns] 示例Day07 单词broadcast[ˈbrɔ:dkɑ:st]广播,电台receiver[rɪˈsi:və(r)] 接收器,接受者boot[bu:t] 引导,启动originate[əˈrɪdʒɪneɪt] 起源于,来自abort[əˈbɔ:t] 终止,使流产exclude[ɪkˈsklu:d]不包括,排除ordered[ˈɔ:dəd] 有顺序的,规则的register[ˈredʒɪstə(r)] 登记,注册service[ˈsɜ:vɪs] 服务,服侍foreground[ˈfɔ:graʊnd] 前景,前台process[ˈprəʊses] 处理,进程reset[ˌri:ˈset]重置rel ease[rɪˈli:s] 释放,发布prepare[prɪˈpeə(r)] 准备;预备bind[baɪnd] 绑定,捆绑remote[rɪˈməʊt] 远程的definition[ˌdefɪˈnɪʃn] 定义,规定idle[ˈaɪdl] 空闲ringing[ˈrɪŋɪŋ]响铃的recorder[rɪˈkɔ:də(r)] 录音机audio[ˈɔ:diəʊ] 音频的zygote[ˈzaɪgəʊt] 受精卵,结合子capture[ˈkæptʃə(r)] 俘获,夺取modify[ˈmɒdɪfaɪ] 修改Day09 单词provider[prəˈvaɪdə(r)] 提供者,供应者authority[ɔ:ˈθɒrəti] 权威match[mætʃ] 匹配,等价于resolver[rɪ'zɒlvə] 解析者,解决问题的人notification[ˌnəʊtɪfɪˈkeɪʃn] 通知,公布pending[ˈpendɪŋ]待定的,即将发生的identifier[aɪˈdentɪfaɪə(r)] 识别符,编号observer[əbˈzɜ:və(r)] 观察者export[ˈekspɔ:t] 输出behavior[bɪ'heɪvjə] 行为,态度explicitly[ɪk'splɪsɪtlɪ] 明确的multimedia[ˌmʌltiˈmi:diə] 多媒体bitmap[ˈbɪtmæp] 位图bounds[baʊndz] 范围options[ˈɒpʃn] 选项display[dɪˈspl eɪ] 显示器,屏幕ratio[ˈreɪʃiəʊ] 比例canvas[ˈkænvəs] 油画,画布paint[peɪnt] 颜料,画笔matrix[ˈmeɪtrɪks] 矩阵scale[skeɪl] 规模,比例translate[trænsˈl eɪt] 转化,移动rotate[rəʊˈteɪt] 旋转pixel[ˈpɪksl] 像素scan[skæn] 扫描,浏览raw[rɔ:] 未加工的surface[ˈsɜ:fɪs] 表面,外观holder[ˈhəʊl də(r)] 持有者sensor[ˈsensə(r)] 传感器accel erometer[əkˌseləˈrɒmɪtə(r)]加速度proximity[prɒkˈsɪməti] 亲近,接近accuracy[ˈækjərəsi] 精确性,准确性Day11 单词fragment[ˈfrægmənt] 片段,碎片replace[rɪˈpl eɪs] 替换attach[əˈtætʃ] 附上,贴上detach[dɪˈtætʃ] 分开,分离repeat[rɪˈpi:t] 重复reverse[rɪˈvɜ:s] 反转,倒退infinite[ˈɪnfɪnət] 无限的,无穷的pivot[ˈpɪvət] 中心点,轴心点sequentially[sɪ'kwenʃəlɪ] 继续的interpolater['ɪntɜ:pəl eɪtər] 插入器,插值器。

Android系统应用程序中英文对照表

Android系统应用程序中英文对照表
HtcCalculatorWidget计算机小工具(就是占据整个屏幕的桌面计算器小工具)
htccalendarwidgetsHTC日历桌面小插件
HTCCamera照相机(没人想把它删了吧)
HtcClockWidget闹钟小插件
HtcCompressViewer
HtcContacts联系人
CertInstaller证书安装器(貌似不能删)
CheckinProvider签入服务
Clicker键盘校准(貌似是)
com.htc.FMRadioWidget桌面收音机插件(插件类都可以删,自己决定)
com.htc.FriendStreamWidget好友流小插件(可删)
com.htc.MusicWidget桌面音乐插件
HtcScreenTimeoutWidget.apk调节屏幕延时插件
HtcSettingsProvider.apk HTC设置
htcsettingwidgets.apk HTC设置小插件,WIFI、移动网络、GPS、飞行模式、蓝牙的开关(好用)
HTCSetupWizard.apk HTC安装向导
GoogleFeedback谷歌反馈(反馈啥,直接干掉)
GooglePartnerSetup Google助手(直接干掉)
GoogleQuickSearchBox谷歌搜索(删了影响到桌面的搜索插件,自启动,干掉他)
GoogleServicesFramework谷歌同步支持服务框架(删了不能同步联系人,不能登录google,我留着呢)
HtcPushMedia.apk
pk
HtcRecommendsWidget.apk
HtcRingtoneTrimmer.apk铃声剪辑(无视,删了)

Android文档-开发者指南-第一部分:入门-中英文对照版-pdf

Android文档-开发者指南-第一部分:入门-中英文对照版-pdf

一、Introduction(入门)0、Introduction to Android(引进到Android)Android provides a rich application framework that allows you to build innovative apps and games for mobile devices in a Java language environment. The documents listed in the left navigation provide details about how to build apps using Android's various APIs.To learn how apps work, startwith App Fundamentals.To begin coding right away, read Building Your First AppAndroid提供了丰富的应用程序框架,它允许您在Java语言环境中构建移动设备的创新应用程序和游戏。

在左侧导航中列出的文档提供了有关如何使用Android的各种API来构建应用程序的详细信息。

要了解如何开发应用,从应用基础开始。

如何开始一个正确的编码,请参照建立你的第一个应用程序。

Apps provide multiple entry points 应用程序提供多个入口点Apps adapt to different devices 应用程序适应不同的设备Android apps are built as a combination of distinct components that can be invoked individually. For instance, an individual activity provides a single screen for a user interface, and a service independently performs work in the background.Android应用程序被构建为能够单独地被调用不同的部件的组合。

Android 原生态 ROM 内置程序中英文对照表

Android 原生态 ROM 内置程序中英文对照表

Android 原生态ROM 内置程序中英文对照表这份东西精简必须的。

如何精简ROM,我写了一篇文章:Android平台ROM的定制及精简教程,然后再结合本中英文对照表,你也会精简出一个好ROM出来。

注:*号是绝不可删的,部分作解释,未解释部分为系统服务*AccountAndSyncSettings.apk 同步与帐户设定ApkManager.apk APK安装器(即N多安装器)*ApplicationsProvider.apk 应用程序支持服务Bluetooth.apk 蓝牙(删了就没有蓝牙了)Browser.apk 谷歌浏览器(喜欢UC的可用UC替代)Calculator.apk 计算器(自带计算器较弱,可用其他替代)Calendar.apk 日历(不用日历的可删)CalendarProvider.apk 日历程序支持服务(不用日历的可删)*Camera.apk 自带相机(用360的可删)*CertInstaller.apk 证书服务Contacts.apk 通讯录/联系人(用第三方通讯录的可删)*ContactsProvider.apk 通讯录/联系人数据存储服务*DefaultContainerService.apk 默认通讯录服务DeskClock.apk 自带闹钟(用第三方闹钟的可删)*DownloadProvider.apk 下载管理器*DrmProvider.apk DRM受保护数据存储服务DSPManager.apk DSP音频管理(兴哥集成在设置里面,我不太使用这个,删了)Email.apk Email(不用自带email接受邮件的可删)FileManager.apk 简易文件管理器(用ES替代了,这个不用,删之)Gallery3D.apk 3D浏览器(嫌弃它速度慢的,可删)GenieWidget.apk 天气与新闻(我自己不用他看新闻,删了)Gmail.apk Gmail(可删,不用GMAIL的就删了吧)GoogleBackupTransport.apk ***(删了没感觉有特殊)GoogleCalendarSyncAdapter.apk 存储日历信息(删了没感觉有特殊)GoogleContactsSyncAdapter.apk 存储联系人信息(怕影响到联系人未删,但兴哥精简版已经删了)GoogleFeedback.apk ***(据说删除后开机会提示googlefeedback.apk,不过我删了没什么副作用)GooglePartnerSetup.apk Google助手(删了没感觉有特殊)GooglePinyinIME.apk Google拼音(用其他输入法的可删)GoogleQuickSearchBox.apk 谷歌搜索(删了影响到桌面的搜索插件)GoogleServicesFramework.apk 同步支持服务(删了不能同步联系人,不能登录google)HTMLViewer.apk HTML浏览器(本地看html,我用不到,删了)kickback.apk 辅助功能Launcher2.apk 2.2原生桌面(用ADW和PRO的可删,删了以后第三方桌面要在开机以后从电脑安装,91,豌豆助手都可)LiveWallpapersPicker.apk 动态壁纸(可删,反正G2跑起来不怎么样)Maps.apk Google地图(可删,自行换成brust版本)MarketUpdater.apk 市场升级(不确定)*MediaProvider.apk 媒体数据存储服务MediaUploader.apk 媒体升级(可删,兴哥精简版已经删除)Mms.apk 自带信息(可删,用第三方短信的就删了吧,提示:删了后,用handsms的的弹出短信框会变得延时,chomp没自带短信甚至不能使用)Music.apk 自带音乐(可删,我换成了那个叫什么播放器)nDuoaDialer.apk N多拨号(可删,自带的就可以了)nDuoaMarket.apk N多市场(可删,电子市场对我够了)nDuoaSettings.apk N多设置组件1(最好不要删,很不错的高级设置,兴哥集成在了设置里面)nDuoaSettingsAddon.apk N多设置组件2(最好不要删,很不错的高级设置)nDuoaSettingsHelper.apk N多设置组件3(最好不要删,很不错的高级设置)NetworkLocation.apk 网络位置(可删)OneTimeInitializer.apk ***(不明物体,删了没什么副作用)*PackageInstaller.apk 程序安装*Phone.apk 电话拨号程序PhoneGuard.apk 拨号卫士(可删,类似来电通等的)PicoTts.apk 可删(文字语言转换的语音合成引擎,设置-语音输入与输出中)PrisonBreak.apk 越狱(翻墙用的)Protips.apk 桌面小绿人插件(可删,就是有提示怎么玩手机)*QuickMgr.apk 一键设置(长按menu的后弹出的那个,不要删,删了以后长安menu会FC)*Settings.apk 系统设置*SettingsProvider.apk 设置服务程序*SetupWizard.apk 开机引导(在定制rom时不可删,刷好机可用rootexplorer删掉) SMSPopup.apk 短信泡泡(就是短信来时弹出的那个,其实就是个弹出框架,可用chomp替换)soundback.apk 辅助功能(可删)SoundRecorder.apk 录音机(可用第三方录音软件替代)Stk.apk sim卡服务(可删,有机油把联系人复制在sim卡上的就不要删它)Street.apk 街道(对于国内街道无效果的貌似,删了)*Superuser.apk 授权程序(就是程序列表上面那个,用这个来获取root的)Talk.apk 系统服务项(可删,删了没有电子市场上)talkback.apk 辅助功能(可删)*TelephonyProvider.apk 拨号记录存储服务Term.apk 超级终端(可删,不过不建议,可以用来刷recovery)TtsService.apk T ext-to-speech服务(可删)Updater.apk 在线升级(可删)UserDictionaryProvider.apk 用户数据字典服务(可删)Vending.apk 电子市场(可删,不过不建议,很多软件的自动升级时候有它很方便)VoiceSearch.apk 语音搜索(可删,虽然看上去很美好,事实上我从未用过,被我删了)VpnServices.apk VPN服务(翻墙服务,可删)ChromeToPhone.apk 从PC端chrome推送网页链接到手机浏览器上Facebook.apk 都知道的GoogleBuzzWidget.apk GOOGLE纵横的桌面插件googlevoice.apk GOOGLE语音服务Twitter.apk 都知道的YouTube.apk 都知道的Android平台ROM的定制及精简教程本教程主要内容有:Android系统文件夹结构解析、应用软件说明、定制精简、ROM签名把包等内容。

Android外文资料及译文

Android外文资料及译文

外文资料:WLANWhy use WLANFor one of the main local area network management, for the laying of cables, or check the cable is disconnected this time-consuming work, it is easy to upset, not easy to break in a short time to find out where. Furthermore, for the business and application environment constantly updating and development of enterprise network must be matched with the original re-layout, need to re-install the network lines, although the cable itself is not expensive, but requested the technical staff to the high cost of wiring, especially the old building, wiring project costs even higher. Therefore, the construction of wireless local area network has become the best solution.What conditions need to use WLANWLAN is not limited to alternative local area network, but to make up for lack of wired local area networks, in order to achieve the purpose of extending the network, the following circumstances may have wireless local area network.●no fixed workplace users●wired local area network set up by the environmental constraints●As a wired local area network backup systemWLAN access technologyCurrently manufacturers in the design of wireless local area network products, there are quite a variety of access design methods can be divided into three categories: narrowband microwave, spread spectrum (Spread Spectrum) technology, and infrared have their advantages and disadvantages, limitations, and more, followed by detailed discussion of these techniques. (Infrared) technology, each technique has their advantages and disadvantages, limitations, and more, followed by detailed discussion of these techniques.Technical requirementsAs wireless local area network needs to support high-speed, burst data services, need to be addressed in the indoor use of multipath fading, as well as issues such ascrosstalk subnets. Specifically, wireless local area network must achieve the following technical requirements:1)Reliability: Wireless LAN system packet loss rate should be lower than 10-5,the error rate should be lower than 10-8.2)Compatibility: For indoor use of wireless local area network, so as far aspossible with the existing wired LAN network operating system and networksoftware compatible.3)Data rate: In order to meet the needs of local area network traffic, wirelessLAN data transfer rate should be more than 1Mbps.4)The confidentiality of communications: As the data transmitted in the air viawireless media, wireless local area networks at different levels must takeeffective measures to improve communication security and data security.5)Mobility: support for all mobile networks or semi-mobile network.6)Energy Management: When receiving or sending data to the site when themachine is in sleep mode, when activated again when the data transceiver toachieve the savings in power consumption.7)small size and low price: This is the key to the popularity of wireless local areanetwork can be.8)Electromagnetic environment: wireless LAN should consider thehumanbodyand the surrounding electromagnetic environment effects.AndroidGoogle Android is a Linux-based platform for developing open-source phone operating system (registered trademark in China called &quot;Achi;). It includes operating systems, user interface and applications - mobile phone work required by the software, but there is no past, the exclusive right to impede innovation and barriers to mobile industry, called mobile terminal is the first to create a truly open and complete mobile software. Google and Open Handset Alliance to develop the Android, the alliance by including China Mobile, Motorola, Qualcomm and T-Mobile, including more than 30 technology and the composition of a leader in wireless applications. Google with operators, equipment manufacturers, developers and other interested parties to formdeep-level partnerships, hoping to establish a standardized, open software platform for mobile phones in the mobile industry to form an open ecosystem .It uses software stack layers (software stack, also known as the software stack) architecture, is divided into three parts: the core of the underlying Linux-based language developed by the c, only basic functions. Middle layer consists of library. Library and Virtual Machine Virtual Machine, developed by the C +. At the top are a variety of applications, including the call procedures, SMS procedures, application software is developed by the companies themselves to write java.To promote this technology, Google, and dozens of other phone company has established the Open Handset Alliance (Open Handset Alliance).Characteristic●application framework to support component reuse and replacement●Dalvik virtual machine specifically for mobile devices is optimized●Internal integrated browser, the browser-based open-source WebKit engine●optimization of 2D and 3D graphics library includes graphics library, 3Dgraphics library based on OpenGL ES 1.0 (hardware-accelerated optional)●# SQLite for structured data storage●Multimedia support includes the common audio, video and static image fileformats (such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)●GSM phone (depending on hardware)●Bluetooth Bluetooth, EDGE, 3G, and WiFi (hardware dependent)●Camera, GPS, compass, and accelerometer (hardware dependent)●Rich development environment including a device emulator, debugger,memory and performance analysis charts, and the Eclipse integrateddevelopment environment plug-insApplicationsA core Android application package together with the release of the application package, including email client, SMS short messaging program, calendar, maps, browser, contact management procedures. A ll applications are written using JA V A.Android Application Framework Developers have full access to core applicationsused by the API framework. The application framework designed to simplify the reuse of software components; any application can publish its functional blocks and any other applications can use the function block its release (but must follow the framework of security restrictions). Reuse mechanism allows the application form can be user replaced.All of the following applications by the composition of a range of services and systems, including:●an expanded view (Views) can be used to build applications, including a list of(lists), grid (grids), text boxes (text boxes), buttons (buttons), and even an embeddable web browser.●Content Manager (Content Providers) allows applications to access data fromanother application program (such as the contact database), or to share their own data.● A resource manager (Resource Manager) to provide access to non-coderesources, such as local strings, graphics, and hierarchical file (layout files).● A notification manager (Notification Manager) allows applications to customersin the status bar display notification information.●An activity class Manager (Activity Manager) to manage the application lifecycle and provides common navigation rollback feature.Ordering the systemOrdering the system information using automated software tools to achieve la carte, side dishes, stir fry vegetables to the transfer of all management processes; completion point, the computer management menu, point the menu and the kitchen, front-end checkout synchronization print; achieved without the menu paper-based operation; backstage manager of inquiry; warehouse inventory management and so on.In addition, ordering the system can also effectively manage customer data, archiving and future reference, put an end to the restaurant "leakage List", "run list" phenomenon; help restaurants using computer data processing capability and powerful ability to process optimization to achieve automated management, streamline workflow restaurant, reduce waste and man-made phenomenon of management oversight, re-optimal allocation of corporate resources, the operating costs to a minimum.Powerful addition to ordering the system to support the general application of stand-alone and LAN in addition to support head office / branch of multi-level framework used for remote network using the POS system to achieve front store sales cashier, sales of small-ticket instantly print sales day-end, reporting sales data and receive information of new features dishes.There are three currently ordering the system to achieve mode:First, the touch screen a la carte model: It uses the currently most popular touch-computer ordering process to achieve that members can to order the software screen prompts, simply click on the screen with your fingers can complete the entire ordering process and convenient This model applies to the practice of rich dishes and large restaurants, restaurants, and restaurant, etc..Second,the wireless PDA ordering mode: it uses a wireless WiFi technology, a la carte interface by PDA display, use touch pen to complete the ordering process, virtually anywhere, anytime to order real-time response, this model is more suitable for dishes and practices simple restaurant, features a restaurant and special mood of senior restaurants.Third, the wireless ordering Po mode: it uses the ISM band, can be a floor or other obstruction in the case of seamless coverage up to 10 meters away, while the signal remained stable, which is the ratio of the wireless PDA ordering model's greatest strength, this model applies to simple dishes and practices and other requirements with fewer fast food restaurants, pot shops.中文翻译:无线局域网为何使用无线局域网络?对于局域网络管理主要工作之一,对于铺设电缆或是检查电缆是否断线这种耗时的工作,很容易令人烦躁,也不容易在短时间内找出断线所在。

安卓手机中英文对照

安卓手机中英文对照
Gmail.apk Gmail(google的东西通常都会自启动,建议删除)
GoogleCalendarSyncAdapter.apk 谷歌日历同步适配器(我要用日历,没删)
DownloadProvider.apk 下载管理器(别删)
DrmProvider.apk DRM数字版权管理(我没删)
Facebook.apk Facebook(国内连不上,没啥用)
com.htc.rosiewidgets.todayinhistory.apk 历史上的今天
com.htc.rosiewidgets.translator.apk 翻译
com.htc.rosiewidgets.wordoftheday.apk 每日一词(不学英语的没鸟用)
Flickr.apk Flickr应用(国内连不上,没啥用)
GenieWidget.apk 天气与新闻(自启动,自上网,重点删除对象)
FieldTest.apk 测试程序(别删,删了没信号)
FilePicker.apk 文件定位(我没删)
Flashlight.apk 手电筒(我没删)
com.htc.rosiewidgets.sandtimer.apk 沙漏
com.htc.rosiewidgets.task.apk 未知插件
com.htc.rosiewidgets.tipcalculator.apk 小费计算器
GoogleContactsSyncAdapter.apk 谷歌联系人同步适配器(担心他自上网,我删了)
GoogleFeedback.apk 谷歌反馈(反馈啥,直接干掉)
GooglePartnerSetup.apk Google助手(直接干掉)

Android应用程序API中英文对照外文翻译文献

Android应用程序API中英文对照外文翻译文献

Android应用程序API中英文对照外文翻译文献中英文资料对照外文翻译Android API级别当你开发你的Android应用程序时,了解该平台API变更管理的基本方法和概念是很有帮助的。

同样的,知道API级别标识以及该标识如何保障你的应用与实际硬件设备相兼容对于开发及后续的发布、维护都是有益的。

本节内容告诉你API级别的知识,以及它如何影响你开发和使用的应用。

关于如何使用“以API级别进行过滤”来使用API参考手册,从本文末尾的文档过滤(Filtering the documentation)中可以得到更多信息。

API级别是什么?API级别是一个整数值,它唯一标识了一个具体版本的Android 平台,及其框架的API的版本。

Android平台提供了一套框架API,使得应用程序可以与系统底层进行交互。

该框架API由以下模块组成:一组核心的包和类清单(manifest)文件的XML元素和属性声明资源文件的XML元素和属性声明及访问形式各类意图(Intents)应用程序可以请求的各类授权,以及系统中包含的授权执行每个Android平台的后续版本会包括它提供的更新的Android应用程序框架的API。

该框架的API的更新设计,使高版本的API与早期版本兼容。

也就是说,在新版本API中大多数都是新增功能,和引进新的或替代的功能。

作为API的部分升级,老的替换的部分已过时,但不会从新版本中删除,使得已有的应用程序仍然可以使用它们。

在极少数情况下,旧版本API的部分可能被修改或删除,通常这种变化是为了保障API的稳定性及应用程序或系统的安全。

所有其他早期版本的API将不做修改的保留。

一个Android平台提供的框架API,被指定一个整数标识符,称为“API级别”。

每一个版本的Android平台只支持有一个API级别,虽然该支持是隐含地包括了所有早期的API级别(一直到API级别1级)。

Android平台的最初版本提供的框架API级别是1级,随后的版本依次递增。

根据移动应用开发常用术语中英文对照表,给出10个例子。

根据移动应用开发常用术语中英文对照表,给出10个例子。

根据移动应用开发常用术语中英文对照表,给出10个例子。

根据移动应用开发常用术语中英文对照表,给出10个例子以下是十个常见的移动应用开发术语及其中英文对照:1.应用程序界面(n Interface):应用程序界面是指用户与应用程序进行交互的界面。

英文缩写为API(n Programming Interface)。

1.应用程序界面(n Interface):应用程序界面是指用户与应用程序进行交互的界面。

英文缩写为API(n Programming Interface)。

1.应用程序界面(n Interface):应用程序界面是指用户与应用程序进行交互的界面。

英文缩写为API(n Programming Interface)。

1.应用程序界面(n Interface):应用程序界面是指用户与应用程序进行交互的界面。

英文缩写为API(n Programming Interface)。

1.应用程序界面(n Interface):应用程序界面是指用户与应用程序进行交互的界面。

英文缩写为API(n Programming Interface)。

1.应用程序界面(n Interface):应用程序界面是指用户与应用程序进行交互的界面。

英文缩写为API(n Programming Interface)。

1.应用程序界面(n Interface):应用程序界面是指用户与应用程序进行交互的界面。

英文缩写为API(n Programming Interface)。

1.应用程序界面(n Interface):应用程序界面是指用户与应用程序进行交互的界面。

英文缩写为API(n Programming Interface)。

1.应用程序界面(n Interface):应用程序界面是指用户与应用程序进行交互的界面。

英文缩写为API(n Programming Interface)。

2.用户界面(User Interface):用户界面是指应用程序的可视化部分,提供给用户进行操作和交互的界面。

android相关文档中英文翻译

android相关文档中英文翻译

Android Application FundamentalsAndroid applications are written in the Java programming language. The compiled Java code — along with any data and resource files required by the application — is bundled by the aapt tool into an Android package, an archive file marked by an .apk suffix. This file is the vehicle for distributing the application and installing it on mobile devices; it's the file users download to their devices. All the code in a single .apk file is considered to be one application.In many ways, each Android application lives in its own world:(1) By default, every application runs in its own Linux process. Android starts the process when any of the application's code needs to be executed, and shuts down the process when it's no longer needed and system resources are required by other applications.(2) Each process has its own virtual machine (VM), so application code runs in isolation from the code of all other applications.(3) By default, each application is assigned a unique Linux user ID. Permissions are set so that the application's files are visible only to that user and only to the application itself — although there are ways to export them to other applications as well.It's possible to arrange for two applications to share the same user ID, in which case they will be able to see each other's files. To conserve system resources, applications with the same ID can also arrange to run in the same Linux process, sharing the same VM..1 Application ComponentsA central feature of Android is that one application can make use of elements of other applications (provided those applications permit it). For example, if your application needs to display a scrolling list of images and another application has developed a suitable scroller and made it available to others, you can call upon that scroller to do the work, rather than develop your own. Your application doesn't incorporate the code of the other application or link to it. Rather, it simply starts up that piece of the other application when the need arises.For this to work, the system must be able to start an application process when anypart of it is needed, and instantiate the Java objects for that part. Therefore, unlike applications on most other systems, Android applications don't have a single entry point for everything in the application (no main() function, for example). Rather, they have essential components that the system can instantiate and run as needed. There are four types of components:(1)ActivitiesAn activity presents a visual user interface for one focused endeavor the user can undertake. For example, an activity might present a list of menu items users can choose from or it might display photographs along with their captions. A text messaging application might have one activity that shows a list of contacts to send messages to, a second activity to write the message to the chosen contact, and other activities to review old messages or change settings. Though they work together to form a cohesive user interface, each activity is independent of the others. Each one is implemented as a subclass of the Activity base class.An application might consist of just one activity or, like the text messaging application just mentioned, it may contain several. What the activities are, and how many there are depends, of course, on the application and its design. Typically, one of the activities is marked as the first one that should be presented to the user when the application is launched. Moving from one activity to another is accomplished by having the current activity start the next one.Each activity is given a default window to draw in. Typically, the window fills the screen, but it might be smaller than the screen and float on top of other windows. An activity can also make use of additional windows — for example, a pop-up dialog that calls for a user response in the midst of the activity, or a window that presents users with vital information when they select a particular item on-screen.The visual content of the window is provided by a hierarchy of views —objects derived from the base View class. Each view controls a particular rectangular space within the window. Parent views contain and organize the layout of their children. Leaf views (those at the bottom of the hierarchy) draw in the rectangles they control and respond to user actions directed at that space. Thus, views are where the activity's interaction with the user takes place.For example, a view might display a small image and initiate an action when the usertaps that image. Android has a number of ready-made views that you can use —including buttons, text fields, scroll bars, menu items, check boxes, and more.A view hierarchy is placed within an activity's window by the Activity.setContentView() method. The content view is the View object at the root of the hierarchy. (See the separate User Interface document for more information on views and the hierarchy.)(2)ServicesA service doesn't have a visual user interface, but rather runs in the background for an indefinite period of time. For example, a service might play background music as the user attends to other matters, or it might fetch data over the network or calculate something and provide the result to activities that need it. Each service extends the Service base class.A prime example is a media player playing songs from a play list. The player application would probably have one or more activities that allow the user to choose songs and start playing them. However, the music playback itself would not be handled by an activity because users will expect the music to keep playing even after they leave the player and begin something different. To keep the music going, the media player activity could start a service to run in the background. The system would then keep the music playback service running even after the activity that started it leaves the screen. It's possible to connect to (bind to) an ongoing service (and start the service if it's not already running). While connected, you can communicate with the service through an interface that the service exposes. For the music service, this interface might allow users to pause, rewind, stop, and restart the playback.Like activities and the other components, services run in the main thread of the application process. So that they won't block other components or the user interface, they often spawn another thread for time-consuming tasks (like music playback). See Processes and Threads, later.(3)Broadcast receiversA broadcast receiver is a component that does nothing but receive and react to broadcast announcements. Many broadcasts originate in system code —for example, announcements that the timezone has changed, that the battery is low, that a picture hasbeen taken, or that the user changed a language preference. Applications can also initiate broadcasts —for example, to let other applications know that some data has been downloaded to the device and is available for them to use.An application can have any number of broadcast receivers to respond to any announcements it considers important. All receivers extend the BroadcastReceiver base class.Broadcast receivers do not display a user interface. However, they may start an activity in response to the information they receive, or they may use the NotificationManager to alert the user. Notifications can get the user's attention in various ways — flashing the backlight, vibrating the device, playing a sound, and so on. They typically place a persistent icon in the status bar, which users can open to get the message.(4)Content providersA content provider makes a specific set of the application's data available to other applications. The data can be stored in the file system, in an SQLite database, or in any other manner that makes sense. The content provider extends the ContentProvider base class to implement a standard set of methods that enable other applications to retrieve and store data of the type it controls. However, applications do not call these methods directly. Rather they use a ContentResolver object and call its methods instead. A ContentResolver can talk to any content provider; it cooperates with the provider to manage any interprocess communication that's involved.See the separate Content Providers document for more information on using content providers.Whenever there's a request that should be handled by a particular component, Android makes sure that the application process of the component is running, starting it if necessary, and that an appropriate instance of the component is available, creating the instance if necessary.2 Activating components: intentsContent providers are activated when they're targeted by a request from a ContentResolver. The other three components —activities, services, and broadcast receivers —are activated by asynchronous messages called intents. An intent is anIntent object that holds the content of the message. For activities and services, it names the action being requested and specifies the URI of the data to act on, among other things. For example, it might convey a request for an activity to present an image to the user or let the user edit some text. For broadcast receivers, theIntent object names the action being announced. For example, it might announce to interested parties that the camera button has been pressed.There are separate methods for activating each type of component:(1). An activity is launched (or given something new to do) by passing an Intent object toContext.startActivity() or Activity.startActivityForResult(). The responding activity can look at the initial intent that caused it to be launched by calling its getIntent() method. Android calls the activity's onNewIntent() method to pass it any subsequent intents. One activity often starts the next one. If it expects a result back from the activity it's starting, it calls startActivityForResult() instead of startActivity(). For example, if it starts an activity that lets the user pick a photo, it might expect to be returned the chosen photo. The result is returned in an Intent object that's passed to the calling activity's onActivityResult() method.(2). A service is started (or new instructions are given to an ongoing service) by passing an Intent object to Context.startService(). Android calls the service's onStart() method and passes it the Intent object. Similarly, an intent can be passed to Context.bindService() to establish an ongoing connection between the calling component and a target service. The service receives the Intent object in an onBind() call. (If the service is not already running, bindService() can optionally start it.) For example, an activity might establish a connection with the music playback service mentioned earlier so that it can provide the user with the means (a user interface) for controlling the playback. The activity would call bindService() to set up that connection, and then call methods defined by the service to affect the playback.A later section, Remote procedure calls, has more details about binding to a service.(3). An application can initiate a broadcast by passing an Intent object to methods like Context.sendBroadcast(),Context.sendOrderedBroadcast(),Context.sendStickyBroadcast () in any of their variations.Android delivers the intent to all interested broadcast receivers by calling their onReceive() methods. For more on intent messages, see the separate article, Intents andIntent Filters.3 Shutting down componentsA content provider is active only while it's responding to a request from a ContentResolver. And a broadcast receiver is active only while it's responding to a broadcast message. So there's no need to explicitly shut down these components. Activities, on the other hand, provide the user interface. They're in a long-running conversation with the user and may remain active, even when idle, as long as the conversation continues. Similarly, services may also remain running for a long time. So Android has methods to shut down activities and services in an orderly way:(1). An activity can be shut down by calling its finish() method. One activity can shut down another activity (one it started with startActivityForResult()) by calling finishActivity().(2). A service can be stopped by calling its stopSelf() method, or by calling Context.stopService().Components might also be shut down by the system when they are no longer being used or when Android must reclaim memory for more active components. A later section, Component Lifecycles, discusses this possibility and its ramifications in more detail.4 The manifest fileBefore Android can start an application component, it must learn that the component exists. Therefore, applications declare their components in a manifest file that's bundled into the Android package, the .apk file that also holds the application's code, files, and resources.The manifest is a structured XML file and is always named AndroidManifest.xml for all applications. It does a number of things in addition to declaring the application's components, such as naming any libraries the application needs to be linked against (besides the default Android library) and identifying any permissions the application expects to be granted.But the principal task of the manifest is to inform Android about the application's components.For example, an activity might be declared as follows:The name attribute of the <activity> element names the Activity subclass that implements the activity. The icon and label attributes point to resource files containing an icon and label that can be displayed to users to represent the activity.The other components are declared in a similar way —<service> elements for services, <receiver> elements for broadcast receivers, and <provider> elements for content providers. Activities, services, and content providers that are not declared in the manifest are not visible to the system and are consequently never run. However, broadcast receivers can either be declared in the manifest, or they can be created dynamically in code (as BroadcastReceiver objects) and registered with the system by calling Context.registerReceiver().For more on how to structure a manifest file for your application, see The Android Manifest.xml File.5 Intent filtersAn Intent object can explicitly name a target component. If it does, Android finds that component (based on the declarations in the manifest file) and activates it. But if a target is not explicitly named, Android must locate the best component to respond to the intent. It does so by comparing the Intent object to the intent filters of potential targets.A component's intent filters inform Android of the kinds of intents the component is able to handle. Like other essential information about the component, they're declared in the manifest file. Here's an extension of the previous example that adds two intent filters to the activity:The first filter in the example —the combination of the action "android.intent.action.MAIN" and the category"UNCHER" — is a common one. It marks the activity as one that should be represented in the application launcher, the screen listing applications users can launch on the device. In other words, the activity is the entry point for the application, the initial one users would see when they choose the application in the launcher.The second filter declares an action that the activity can perform on a particular type of data.A component can have any number of intent filters, each one declaring a different set of capabilities. If it doesn't have any filters, it can be activated only by intents that explicitly name the component as the target.For a broadcast receiver that's created and registered in code, the intent filter is instantiated directly as an IntentFilter object. All other filters are set up in the manifest. For more on intent filters, see a separate document, Intents and Intent Filters.6 XML-Based LayoutWhile it is technically possible to create and attach widgets to our activity purely through Java code, the way we did in Chapter 4, the more common approach is to use an XML-based layout file. Dynamic instantiation of widgets is reserved for more complicated scenarios, where the widgets are not known at compile-time (e g., populating a column of radio buttons based on data retrieved off the Internet).With that in mind, it’s time to break out the XML and learn how to lay out Android activities that way.As the name suggests, an XML-based layout is a specification of widgets’ relationships to each other—and to their containers (more on this in Chapter 7)—encoded in XML format. Specifically, Android considers XML-based layouts to be resources, and as such layout files are stored in the res/layout directory inside your Android project.Each XML file contains a tree of elements specifying a layout of widgets and their containers that make up one view hierarchy. The attributes of the XML elements are properties, describing how a widget should look or how a container should behave. For example, if a Button element has an attribute value of android:textStyle = "bold", that means that the text appearing on the face of the button should be rendered in a boldface font style.Android’s SDK ships with a tool (aapt) which uses the layouts. This tool sh ould be automatically invoked by your Android tool chain (e.g., Eclipse, Ant’s build.xml). Of particular importance to you as a developer is that aapt generates the R.java source file within your project, allowing you to access layouts and widgets within those layouts directly from your Java code.XML as a GUI definition format is becoming more commonplace. Microsoft’s XAML2, Adobe’s Flex3, and Mozilla’s XUL4 all take a similar approach to that of Android: put layout details in an XML file and put programming smarts in source files (e.g., JavaScript for XUL). Many less-well-known GUI frameworks, such as ZK5, also use XML for view definition. While “following the herd” is not necessarily the best policy, it does have the advantage of helping to ease the transition into Android from any other XML-centered view description language.Android应用基础Android应用程序使用Java编程语言开发。

Android手机app下自带程序的中英文对照情况

Android手机app下自带程序的中英文对照情况

AccountAgent.apk| 华为Cloud+账户同步助手 留着58client.apk 5 AccountAndSyncSettings.apk 谷歌账户同步设AccountSyncManager.apk 账号管理程序(设置里面的账AccuWeatherDaemonService.apk 天气插件,删除后天AcwfDialog.APKAddProgramWidget.apk 添加程序AdobeReader.apk PDF Adscription.apk 归属地 Againstguard.apk 系统文件 不AlarmClock.apk 闹钟 删后请Album.apk 内置相册alipay.apk 支付AllBackup.apk|华为全备份 用不到的可删AmsComposer.apk 动感短信AnalogClock.apk 桌面时钟 ApkBatchInstall.apk|华为apk安装器,可删 apkCompassCH.apk 超级指南针(建议保留ApplicationsProvider.apk 应用程序支持服务 不AppSharing.apk 应用AtCmd.apk AT命令AudioEffect.apk 音效AutoRotateWidget.apk 自动旋转BackgroundDataWidget.apk 背景数据BackupRestoreConfirmation.apk|备份和重置 没事不要BarCode.apk 条码扫描BatteryMonitor.apk 电池监控Bcr.apk 名片全能王besttone.apk 百事通besttoneEatery.apk 百事通餐besttoneEsearch.apk 百事通电话besttonePlaneTicket.apk 百事通航空 BlackBoard.apk 内置Bluetooth.apk 蓝牙 BluetoothDun.apk 蓝牙拨号BluetoothFtp.apk 蓝牙传输BluetoothServices.apk|蓝牙服务 不可删bookmarkwidget.apk 桌面书签BrcmBluetoothServices.apk 蓝牙Browser.apk 谷歌浏览器(喜欢UC的BuddiesNow.apk 好友现况窗口 Calculator.apk 计算器(自带计算器较CalculatorWidget.apk 计算器插Calendar.apk 日历CalendarProvider.apk 日历calendarwidgets.apk 日历、事Camera.apk 自带照相CameraMoto.apk 照相机CamPage.apk 文本全能王CertificateManager.apk 证书管理CertInstaller.apk 证书CheckinProvider.apk 签入ChsPack.apk touchpal输入法拼音语Clicker.apk 键盘ClockWidget.apk 桌面天CompressViewer.apk 压缩文件Contact**t.apk|联系人相关组件 不可删Contacts.apk|联系人 基本组件 不可删ContactsExt.apk|联系人相关组件 不可删ContactsProvider.apk 通讯录/联系人数据存contactwidgets.apk 桌面联系ContextMode.apk 联系人储存 不可cooldict.apk 词酷CoolMap.apk 自带GPS软件 CoolMart.apk 酷派的菜篮子 Cooperation.apk 系统文件 不Copyright.apk 版权 CSPeopleSyncService.apk 提供CTBrandService 中国电信内置服务(包括天翼等) CustomizationSettingsProvider.apk 自定CustomizationSetup.apk 自定DataDialog.apk 数据对话框 不确定,DataRoamingWidget.apk 数据漫游DataStripWidget.apk 数据开关Days.apk 迷你日记 DCSImpl.apk 集散DCSStock.apk 股票DCSUtility.apk 集散DebugTool.apk 调试DefaultContainerService.apk 默认通讯录服务 不可DeskClock.apk|桌面时钟界面 卸载后闹钟消失 可DFPI.apk 这个不太清楚,但经过试验,Dial_NTAT.apk 拨号盘 最Dialer.apk 桌面电话dianping.apk 狗X的点评 可DiceBox.apk 酒吧色子DictEntryVtewsaga.apk 英语DigitalClock.apk 桌面数字时钟 Direct.apk 电子市场DirectDownloadsProvider.apk 电子市场Divx.apk 授权设置Dlna.apk 多媒体无线分享 DLNAMiddleLayer.apk DLNA技DM.apk 系统文件 DMC.apk 多媒体播DmService.apk 系统进程,具体未知Dock.apk 底座模式主程序 DolbyMobileAudioEffectService.apk|杜比音效软dopool.apk 手机电视 DownloadProvider.apk 下载DownloadProviderUi.apk|下载管理UI 也别删DrmProvider.apk 电子邮件数据存DrmUA.apk DRM内容启动器 DualClock.apk 桌面双时钟 Ebook.apk 自带的看书 Email.apk 电子邮件客户端Email.apk|谷歌邮件 用不到的可删EmailWidget.apk 电子邮件EngineerMode.apk 工程师模式 不确定EngMode.apk 系统文件 EnhancedGoogleSearchProvider.apk google搜索增强EReaderLibrary.apk 电子EReaderViewer.apk 电子ES_filemanager.apk 资源浏览器(建议保留Estore.apk 天翼** Exchange.apk|邮件相关 卸载了谷歌邮件后方可卸载ExtDispService.apk 系统进程,具体未知Facebook.apk 联系人照FaceLock.apk|面部解锁 留着吧 难得的一个功能) FactoryPattern.apk 系统文件 FieldTest.apk 测试FileBrowser.apk 文件夹查看 不Filemanager.apk 文件浏览器FilePicker.apk 文件Finance_5_0_for_API_1_6_update.apk CSL旗下的In Firewall.apk 防火墙Flashlight.apk 手电FlashLitePlugin.apk flas Flickr.apk Flic FMRadio.apk FM调频收音机 FMRadioWidget.apk 收音机插件(FmService.apk|收音机服务 要听收音机的不要删FOTA.apk 无线升级FriendStream.apk Frie FriendStreamWidget.apk 用于整合社交FTM.apk WLAN sharing ma FTS.apk WIFI共享,耗电大户Galaxy4.apk|星系动态壁纸 可删Gallery2.apk|图库 可删 用快图浏览之类的代替Gallery3D.apk 3D看图,推荐GenieWidget.apk 显示Gestures.apk 触摸屏控制GlobalSearch.apk 全局搜索Gmail.apk gmai GmailProvider.apk Gmail存储GoLauncher.apk 桌面GoMarket.apk 安智市场 GoogleApps.apk google企业应用套件 GoogleBackupTransport.apk 谷歌设置备份 GoogleCalendarSyncAdapter.apk 谷歌日历同步适配GoogleCheckin.apk google签入服务 GoogleContactsSyncAdaper.apk google联系人同步GoogleContactsSyncAdapter.apk 谷歌联系人同步适GoogleFeedback.apk 谷歌市场反馈代GooglePartnerSetup.apk google帐户设置 GooglePinyinIme.apk 谷歌拼音输入法 GoogleQuickSearchBox.apk 谷歌GoogleSearch.apk 谷歌搜索 可GoogleSearch.odex 谷歌搜索 GoogleServicesFramework.apk 谷歌GoogleSettingsProvider.apk 谷歌设置存储 GoogleSubscribedFeedsProvider.apk google订阅源存储googlevoice.apk 这个是电话和短信功GPSTATTest.apk GPS系统程序 删后GPSTest.apk GPS系统程序 删Greader.apk 谷歌新闻GreaderWidget.apk 谷歌新闻GSD.apk 函数gtalkservice.apk GTalk服务 HandWritingSimpPack.apk| 手写输入 没事就留着hangBanGuanJia.apk 航班管家 可删Hispace.apk|智慧云 可删 用第三方市场代替HoloSpiralWallpaper.apk|光环螺旋动态壁纸 可HTMLViewer.apk|HTML浏览器 可删HuaweiSecurityGuard.apk|华为安全管家,可删 HuaweiSyncClient.apk|华为同步助手 不删HubSyncProvider HUB同HwAppIconsBoxy.apk| 图标包 我删了 没出问题HwAppIconsBreeze.apk|图标包 我删了 没出问题HwBeyondTheSkyTheme.apk| 清风主题 可删 HwBluetoothImport.apk|蓝牙导入通讯录 不可删HwCalendar3D.apk|华为3D日历 可删HWCalla_TaiWan.apk 繁体中文手写输入HwCamera.apk|相机 可删 用第三方代替HwCloudDrive.apk|华为云服务 不要删了HwDawnTheme_small.apk|华为晨曦主题 可删HwDLNA.apk|DLNA服务 可删 但不要删 挺好玩的东西HwEmail3D.apk|华为EMAIL3D 可删HwFlashlight.apk|华为手电筒 必须删 U8800时代有人HwFMRadio.apk|华为收音机 可删 用第三方软件代替HwGestureService.apk|华为手势服务 留着吧 没多大HwGPMS.apk|好像和SIM卡有关的东西 还是不要删了HwGPMS.apk|好像和SIM卡有关的东西 还是不要删HwIME.apk|华为输入法 可删 搜狗输入法代替HwLauncher3D.apk|华为3D桌面 可删 删完后3D桌面就HwLauncher5.apk|华为2D桌面 不要删了 删了只能用第三HwMms.apk|短信 不要删HwMusicWidget3D.apk|华为3D音乐播放器插件 删吧··HwOUC.apk|华为在线升级 不删HwPhotoAlbumWidget3D.apk|华为3D相框 可删HwSoundRecorder.apk|录音机 用不到的可删HwUnlock3D.apk|3D解锁 可删HwWallpaper.apk|华为壁纸 可删HwWeatherClock3D.apk|3D天气插件 可删HwWiFiHotspot.apk|无线热点 不要删IGame.apk 爱游戏 ImageWallpaper.apk 图片壁纸IME.apk 内置输入ImgoTV.apk 芒果TViMusic.apk 爱音乐 InfoEasy_1.0.7.apk CSL旗InputEventApp.apk 输入事件管理器 install_flash_player.apk 浏览器IntelliSync.apk 系统文件 iReader.apk 爱读Jbed.apk JAVA模kaixin.apk 开 心网 kaixin001.apk 开心网 KaiXinAccountService.apk 未知程序,没敢删Kavass.apk 通信卫士 删KeyChain.apk|不知道是什么 不要删Kies.apk USB设定KiesAir.apk KIES无线 kieswifi.apk KIES无线客户端 Kobo.apk KOBO阅读器 Laputa.apk 导航(不LaputaInstaller.apk 导航安装LaputaWidget.apk 导航插件Latin.apk moto输入法扩展文件LatinIME.apk 安卓输入法 建议LatinImeGoogle.apk 未知程序,没敢删 LatinImeTutorial.apk 键盘输入法设置(可LatinIMETutorial.apk moto输入法扩展文件 Launcher.apk 启动加载器Launcher2.apk 2.2原生桌面(用A LBSUI.apk 具体未知lcdtest.apk 屏幕测试 LiveWallpapers.apk|动态壁纸 可删 反正我不用LiveWallpapersPicker.apk 动态LiveWalls.apk 动态壁纸(可删)LocationPickerLaputa.apk LOCAT LocationService.apk 定位服务LockScreen.apk 默认锁屏LogToFile.apk 离线日记 MagicSmokeWallpapers.apk|魔法烟雾壁纸 可删Mail.apk 自带邮Mail_189.apk 189邮箱 可mailwidgets.apk 邮箱插件Maps.apk Google地图(可删MarketUpdater.apk 电子市MediaCenter.apk|华为音乐播放器 不删 有杜比音效还MediaGallery.apk 媒体库MediaHub.apk 影视圈 MediaProvider.apk|通讯支持程序,系统程序,铃声设置MediaSync.apk 媒体同步MediaUploader.apk 媒体数Memo.apk 自带笔记本 可删MessageCS.apk 系统讯息MessageingProvider.apk 信息存储 MessageTabPlugin.apk 消息选MessageUploader.apk 系统讯息Metal.apk 内置的Microbesgl.apk 微生物动态壁纸 MiniDiary.apk 迷你日记MMITest_II.apk 工程模式里用到的Mms.apk 系统短信 建Mms.apk 短信、彩信MobilePrint.apk 移动打印 MobileTrackerEngineTwo.apk 手机跟踪器 MobileTrackerUI.apk 手机跟踪器界面Mode10Wallpapers.apk 提供ModemMode.apk 掌上宽带 不用的可ModeSetting.apk 系统文件 不可删MotoAtCmdPlugin.apk moto AT命令程序扩展 MotorolaSettingsProvider.apk Motorola设置存储 MotoSmartHandWriting.apk moto手写输入法 mreader.apk 貌似是阅读器 msgwidgets.apk 短信和彩MtkBt.apk 全球卫星定位系统接收Music.apk 自带音乐(可删,换成MusicHolic.apk CSL的One2F MusicMarkedItems.apk 音乐已标MusicWidget.apk 音乐插件(自My.apk 帐户和同MyCalendar.apk|华为桌面日历插件 可删 反正我不用MyEmail.apk|华为桌面邮件插件 可删 反正我不用MyReportAgent 报告Navigator.apk 高德导航Navito_XT800_F_SC_VER_4_1_1.apk 途语导航 NetFrameworks.apk 系统文件 不可删 NetUserMgr.apk 系统文件 不可删NetworkLocation.apk 网络定NoiseField.apk|Bubbls动态壁纸 可删NotePad.apk 记事本(可删) NoteWidget.apk 记事贴NumToAddr.apk 语音输入OMACP.apk|未知,建议不要动它OmaDownloadProvider.apk 系统文件 不可删 OmaDrmProvider.apk 系统文件 不可删OneTimeInitiaLizer.apk 首次启动时用来裝OnlineAssetDetails.apk Link OTA.apk 自动升级 可OverlayProvider.apk 覆盖存储PackageInstaller.apk|程序包安装器,绝对不能动,否palmebook.apk 爱读掌阅 可删PandaReader.apk 91熊猫读书PCSCII.apk PC同步Personalization.apk 个人设置 PhaseBeam.apk|PhaseBeam动态壁纸 可删Phone.apk 拨号器储存 不Phone_Util.apk 电话设备 PhoneErrService.apk 电话错误服务 PhoneFinder.apk|华为手机寻找,需Cloud+支持,万一手PhotoEdit.apk 照片编辑PhotoRetouching.apk 图片编辑 PhotoWidget.apk 相框插件PicoTts.apk 文本到语音 PIM.apk 备份(可删 ) 可以把联系人/ PimBackup.apk 个人信息备份PIMPC.apk 自动备份文件 PIMPC.odex 自动备份文件 Pinyin.apk moto拼音输入法 PlaceService.apk 位置服PinyinIME.apk 谷歌输入法 可删 PinyinPack.apk|谷歌拼音输入法 可删Player.apk 音乐库 可PluginManager.apk Sense Plurk.apk Plurk微PlurkWidget.apk 社交网Plurk插PostIt.apk 迷你记事 PotterUnlock.apk|华为解锁,就是默认的四向圆环解锁PowerManagement.apk|电量管理 不要删 PowerStripWidget.apk 电源控制Preconfig.apk 预先配置 PressReader.apk 报纸阅读、天气 ProfileWidget.apk 情景模式ProjectMenuAct.apk|工程模式列表 不要删 有时候要进Protips.apk 桌面小绿人插件(Provision.apk 系统文件 设置向导 PushService.apk|华为推送服务 留着吧qieke.apk 切客 QQ.apk QQ QQ_Samsung_Seine.apkQQ4 AlipayGphone.apk 支付宝 QQBrowser_samsung.apk QQ浏览器 QuickDial_NTAT.apk 一键拨号 可删 QuickLookup.apk 快速查Quickoffice.apk 手机o QuickSearchBox.apk|快速搜索栏 可删QYVideoClient.apk 奇艺影视Rapi.apk 系统文件 不可ReadersHub.apk 阅读圈ReaderWidget.apk 电子Readme.apk|华为使用指南,建议删除RecentCalls.apk 通话记录 不可Recommends.apk 谷歌市场RecommendsWidget.apk likes插Renren.apk 人人网 RenRenAccountService.apkrestartapp.apk 重新启Restaurant.apk XX餐厅 可RingtoneTrimmer.apk 铃声编辑RingtoneWidget.apk 选择铃声RootExplorer.apk|RE管理器 不要删Rosie.apk 的Sen RssNews.apk 酷派新闻 可删 SamsungApps.apk 三星市场 SamsungAppsUNAService.apk 市场服务 SamsungIM.apk MSN聊天 SamsungIME.apk 三星原厂输入法 SamsungWidget_ProgramMonitor.apk 任务管理器 ScreenBrightnessWidget.apk 调节屏幕ScreenCalibration.apk 屏幕校正 可删 ScreenCaptureService.apk 三星截图后台服务,ScreenTimeoutWidget.apk 调节屏幕SDBackup.apk 备份 可删 作用Secclkd.apk 未知SecurityMgr.apk 不知道干嘛的!删了也SecurityProvider.apk 安全储存器SecuValid.apk 不知道干嘛的!删了SelfTestMode.apk 自检模式 Settings.apk 系统设置 不可以删除SettingsProvider.apk 设置储存 不可settingwidgets.apk 设置小插SetupWizard.apk 设置向SFLive.apk 天翼LIVE 可SFReader.apk 天翼阅读 可SFVideo.apk 天翼视频 可ShareApp.apk 应用共享 SharedStorageBackup.apk|共享存储备份 别删了shutdown.apk 关机SIE_Bravo_HK_Games.apk 香港在线SIE_Bravo_HK_SocialNetwork.apk 香港在线SIE_CSL_CustomerService.apk CSL旗SIE_CSL_Entertainment.apk CSL旗SIE_CSL_Expresso.apk CSL旗SIE_CSL_Finance.apk CSL旗SIE_CSL_Football.apk CSL旗SIE_CSL_HorseRacing.apk CSL旗SIE_CSL_HotApps.apk CSL旗SIE_CSL_MobileFacebook.apk CSL旗SIE_CSL_Music.apk CSL旗SIE_CSL_mynet.apk CSL旗SIE_CSL_MyNet1010.apk CSL旗SIE_CSL_News.apk CSL旗SIE_CSL_StudioOnDemand_New.apk CSL旗signin.apk 三星帐户 Sinamicroblog.apk 新浪微博 SinaNews.apk 新浪新闻 SinaStock.apk 新浪股票 SinaWeather.apk 新浪天气 SkinPicker.apk 皮肤选Slate.apk 内置的SnsAccountKx.apk 社交程序相关,删除SnsAccountRr.apk 社交程序相关,删除SNSCommon.apk 常见的SNS,不需要SnsContentProvider.apk SnS的内容提供商, SnsDisclaimer.apk 社交程序相关,删除SnsImageCache.apk 社交程序相关,删除SnsProvider.apk 社交程序相关,删除SnsWidget.apk SnS的小工具,删SnsWidget24.apk SnS社区,删SocialHub.apk 删除后MSN聊天无法Soundback.apk 辅助功能 删SoundCardTest.apk 系统文件 不可删 SoundHound_Freemium.apk 歌曲识SoundRecord.apk 自带录音 可删 不SoundSetDownloadManager.apk 铃声管理Stk.apk sim卡服务(可删,有Stock.odex 证卷软件 可删Stock_trade.apk 股票交易程序 不玩StockWidget.apk 股票插件(可StreamPlayer.apk 自带视频Street.apk 谷歌街景地图 Superuser.apk|超级用户 也就是ROOT权限 必须不删Surfing.apk 天翼** 可删 syncmldm.apk 软件更新 Syncwidget.apk 同步插件SysSetting.apk 设置 不可删 SystemUI.apk|系统状态栏,坚决不能删Talk.apk 谷歌talk(可删,Talkback.apk 辅助功能 删TaskMgr.apk 任务管理 就下拉TasksProvider.apk 任务存储teeter.apk 重力球TelecomService.apk 天翼** 可删 TelephonyProvider.apk|通话信息存储服务 看这名字也Tencentmicroblog.apk 腾迅微博Term.apk 访问终端的22 thinkdroid.apk 办公软件 TipWidget.apk 使用提示Today_10_227_a.apk CSL旗TomEbook.apk TOM杂志 Tonghuashun.apk 同花顺ToolBox.apk|华为下拉通知栏及桌面快捷开关插件提供程TotemWeather.apk|华为天气,比较大,个人感觉有点华TouchPal.apk TouchPal输入法(可TouchWizCalculator.apk 计算器 TransferData.apk 传输数TtsService.apk GooglTwCalendarAppWidget.apk 日历插件 TwidroydFree342-Huawei-rev1.apk twitter客户端(不Twitter.apk Twitt TwitterWidget.apk 国外微博Twit Updataonline.apk 在线升级(可删)Updater.apk 程序更Upgrade.apk 和升级有关 但删了UpgradeSetup.apk 更新程UploadProvider.apk 媒体上UserDictionaryProvider.apk|通讯支持程序,系统程序UserDictionaryProvider.odex 输入法相关 不UTK.apk UTK卡应用 可V P NServices.apk 科学上网服务,删除Vending.apk 电子市场(可删,VideoEditor.apk|视频编辑器 不用的可删VisualizationWallpapers.apk|频谱动态壁纸 可VisualizationWalls.apk 动态音乐背景壁viva.apk VIVA看书 viva_tts.apk VIVA报刊亭 VoiceDialer.apk|语音拨号服务 可删VoiceRecorder.apk 录音机 VoiceSearch.apk 语音搜索(可删,VpnDialogs.apk|/VPN局域网服务 可删VpnServices.apk 科学网 VPN服务(v WapPush.apk WAP短信发送 但删了WapPush.odex WAP短信发送 但删了也Weather_NTAT.apk 酷派天气 可删 WeatherAgentService.apk 天气代WeatherProvider.apk 天气提WeatherSyncProvider.apk 天气同WeatherWallpaper.apk 天气壁纸WeatherWidget.apk 天气插件(自WifiCertService.apk 无线宽带 不用的可WifiRouter.apk WIFI无wipereceiver.apk 三星远程清除手机信WlanTest.apk WIFI测试工具 Wood.apk 内置木WorldClock.apk 世界时YGPS.apk 这个应该和GPS有关吧Youku_Samsung_seine.apk 优酷视频 YouTube.apk YouTube视频(要vp zhuyincangjieIME.apk 注音仓颉输入法,Zinio.apk Zinio电子杂志阅读器手 留着吧58同城 可删账户同步设置设置里面的账户与同步,删除后进不去)件,删除后天气动态壁纸无法使用添加程序的小插件(删除后无法向桌面添加快捷方式 ) PDF阅读器(可删)属地 可删 需要的话自寻软件代替放入文件 不可删钟 删后请自寻替代软件 推荐:正点闹钟内置相册程序支付宝 可删针(建议保留)支持服务 不可以删除应用程序分享(可删,但进程序列表,按菜单键无分享 自动旋转小插件背景数据自动同步插件置 没事不要删百事通 可删百事通餐厅 可删百事通电话 可删百事通航空 可删内置的黑板皮肤(自带皮肤,可删)蓝牙 删除后请自行寻找替代软件拷入桌面书签插件(可删)蓝牙服务(同上) (8和9的蓝牙服务不可删)器(喜欢UC的可用UC替代)况窗口自带计算器较弱,可用其他替代)计算器插件(可删)日历(会自启动,可删)日历存储服务(不用会议、约会之类的可删)日历、事件插件(可删)自带照相机(你懂的)证书安装程序签入服务输入法拼音语言包(可删)键盘输入校正工具(可删)桌面天气时钟插件(喜欢第三方天气插件的可删) 压缩文件查看器系人数据存储服务 不可以删除桌面联系人插件储存 不可删带GPS软件 可删 需要的话自寻软件代派的菜篮子 可删 但需要升级的朋友请保留 文件 不可删版权提供的同步服务(不用GOOGLE服务的可删)翼等)自定义设置服务自定义安装程序框 不确定,没删数据漫游开关插件(可删)数据开关仪表盘插件(可删)集散控制系统服务股票后台传输程序(可删)集散控制系统公共程序组件调试工具录服务 不可以删除经过试验,删除了没影响。

android手机操作系统中英文对照

android手机操作系统中英文对照

android⼿机操作系统中英⽂对照general 常规silent mode 静⾳模式 (silence all sounds except media & alarms 对所有⾮多媒体声⾳进⾏静⾳处理)vibrate 震动(always 始终 / never ⼀律不 / only in silent mode 仅在静⾳模式下来电震动 / only whe n not in silent mode 仅在⾮静⾳模式下来电震动)volume ⾳量 (use incoming call volume for notifications 将来电⾳量⽤作通知⾳量)incoming calls 来电phone ringtone ⼿机铃声notification 通知notification ringtone 通知铃声feedback 反馈audible touch tones 按键操作⾳(play tones when using dial pad 使⽤拨号键盘时播放按键⾳效) audible selection 选择操作⾳(play sound when making screen selcction 进⾏屏幕选择时播放⾳效)sereen lock sounds 屏幕锁定操作⾳(play sound when locking and unlocking the screen 锁定和解锁屏幕时播放声⾳)haptic feedback 触感 (vibrate when pressing soft keys and on certain UI interactions 按软键以及进⾏某些UI交互时震动)display 显⽰brightness 亮度(automatic brightness ⾃动调节亮度)auto-rotate screen ⾃动旋转屏幕animation 动画(no window animations are shown 不显⽰窗⼝动画 - (no animations ⽆动画 / some animationgs 部分动画 / all animations 所有动画))screen timeout 屏幕超时(adjust the delay before the screen automatically turns off 调整屏幕⾃动锁定前的延时)number of home panels 屏幕个数 (adjust the number of panels on home screen 调整主屏的屏幕个数)location & security 位置和安全my location 我的位置use wireless network 使⽤⽆线⽹络(location determined by Wi-Fi and/or mobile networks 通过W i-Fi和/或移动⽹络确定的位置)use GPS satellites 使⽤GPS卫星(locate to street-level(requires more battery plus view of sky) 定位时,精确度设定为街道级别(取消选中可节约电量))phone lock ⼿机锁定phone lock settings ⼿机锁定设置phone lock type ⼿机锁定类型(phone lock is off 关闭⼿机锁定功能(none ⽆ / password 密码 / p attern 图案))change unlock password timeout 更改解锁密码超时时间use visible pattern 使⽤图案use tactile feedback 使⽤触感screen unlock 屏幕解锁set up screen lock 设置屏幕锁定(lock screen with a pattern,PIN,or password 使⽤图案、PIN或密码锁定屏幕)none ⽆(disable screen unlock security 停⽤屏幕锁定保护功能)pattern 图案(draw pattern to unlock screen 绘制图案给屏幕解锁)PIN (enter a number PIN to unlock screen 输⼊数字PIN给屏幕解锁)password 密码(enter a password to unlcok screen 输⼊密码给屏幕解锁)SIM card lock SIM卡锁定set up SIM card lock 设置SIM卡锁定lock SIM card 锁定SIM卡(require PIN to phone 需要输⼊PIN才能使⽤⼿机)change SIM PIN 更改SIM卡PINpassword 密码visible passwords 密码可见(show password as you type 输⼊密码时可见)device administration 设备管理select device admindtrators 学则设备管理器(add or remove device administrators 添加或删除设备管理器)(no available device administrators 没有可供显⽰的设备管理器)credential stronge 凭证存储use secure credentials 使⽤安全凭证(allow applications to access secure certificates and other credentials 允许应⽤程序访问安全凭证和其他凭证)install from SD card 从SD卡安装(install encrypted certificates from SD card 从SD卡安装加密的证书)(no certificate file found in the SD card 在SD卡上找不到证书⽂件)set password 设置密码(set or change the credential storage password 设置或更改凭证存储密码) (set a password for the credenntial storage(at least 8 characters) 设置凭证存储密码(⾄少8个字符) / n ew password 新密码 / confirm new password 确认新密码)clear storage 清楚存储(clear credential storage of all contents and reset its password 清楚所有内容的凭证存储并重置其密码)applications 应⽤程序unknown sources 未知来源(allow installation of non-Market applications 允许安装⾮电⼦市场提供的的应⽤程序)quick launch 快速启动(set keyboard shortcuts to launch applictions 设置快捷键启动程序)(no shortc ut 没有快捷键)manage applicatings 管理应⽤程序(manage and remove installed applications 管理和删除按章的应⽤程序)(sort by size 按⼤⼩排序)running services 正在运⾏的服务(view and control currently running services 查看和控制当前正在运⾏的服务)development 开发(set options for application development 设置应⽤程序开发选项)USB debugging USB调试(debug mode when USB is connected 连接USB后启⽤调试模式)stay awake 保持唤醒状态(screen will never sleep while charging 充电时屏幕不会休眠)allow mock locations 允许模拟地点(allow mock locations 允许模拟地点)accounts & sync 账户与同步 (add account 添加账户)general sync settings 常规同步设置background data 背景数据(applications can sync,send,and receive data at any time 应⽤程序随时可以同步、发送和接收数据)auto-sync ⾃动同步(applications sync data automatically 应⽤程序⾃动同步数据)manage accounts 管理账户(remove account 删除账户)data & synchronization 数据与同步sync contacts 同步联系⼈ (touch to sync now 触摸可⽴即同步)sync gmail 同步Gmailsync calendar 同步⽇历privacy 隐私权backup and restore 备份和还原back up my data 备份我的数据(back up my settings and other apppliction data 备份我的设置和其他应⽤程序数据)automatic restore ⾃动还原 (if I reinstall an application,restore backed up settings or other data 重新安装某个应⽤程序后,系统会还原已经备份的设置或其他数据)personal data 个⼈数据factory data reset 恢复出⼚设置(erases all data on phone 清除⼿机上的所有设置)SD card & phone storage SD卡和⼿机内存SD card SD卡total space 总容量available space 可⽤空间unmount/mount SD card 卸载/安装SD卡(unmount the SD card for safe removal 必须先卸载SD卡,才能将其安全移除)format SD card 格式化SD卡 (format(erase)the SD card 格式化(清除)SD卡)internal phone storage ⼿机内存available space 可⽤空间language & keyboard 语⾔和键盘select language 选择语⾔multi-touch keyboard 多点触摸键盘input languages 输⼊语⾔(slide finger on spacebar to change language 在空格键滑动⼿指可更改语⾔)on-screen keyboard 屏幕键盘show suggestions 显⽰建议(display corrections and completions while typing 输⼊时启⽤联想提⽰)auto-correct errors ⾃动纠错(spacebar and punctuation automatically insert highlighted wordFriday / Fri. 星期五Saturday / Sat. 星期六Sunday / Sun. 星期⽇。

Android(1)

Android(1)

视图层次 View Hierarchy........................................................................................ 24 布局 Layout............................................................................................................... 25 部件 Widgets............................................................................................................ 26 用户界面事件 UI Events...........................................................................................26 菜单 Menus............................................................................................................... 26 高级话题 Advanced Topics................................................................................ 27 适配器 Adapter............................................................................................... 27 风格与主题 Styles and Themes......................................................................27 资源和资产 Resources and Assets....................................................................... 28 资源引用 Resource Reference....................................................................... 43 国际化和本地化 Internationalization and Localization .............................. 43 意图和意图过滤器 Intents and Intent Filters........................................................ 43 意图过滤器 Intent filters............................................................................. 47 通常情况 Common cases............................................................................ 51 使用意图匹配 Using intent matching..................................................... 52 数据存储 Data Storage............................................................................................ 52 概览 Storage quickview.................................................................................. 52 � 系统偏好:快速,轻量级存储.................................................................... 52 � 文件:存储到设备内部或可移动闪存......................................................... 52 � 数据库:任意的结构化存储........................................................................ 52 � 支持基于网络的存储.................................................................................... 52 系统偏好 Preferences...................................................................................... 53 文件 Files........................................................................................................... 54 数据库 Databases............................................................................................. 54 网络 Network.....................................................................................................55

Android开发指南中文版

Android开发指南中文版

Android开发指南中文版‐应用程序框架Android Developers本文是对Android SDK1.5版的英文开发资料Android Development Guide一文应用程序框架部分的翻译,覆盖了Android应用开发所有主要的概念。

部分内容整理自网络。

本文仅用于技术学习,请勿用于商业用途。

目录应用程序基础Application Fundamentals (4)关键类 (4)应用程序组件 (5)激活组件:intent (7)关闭组件 (7)manifest文件 (8)Intent过滤器 (8)Activity和任务 (10)Affinity(吸引力)和新任务 (11)加载模式 (12)清理堆栈 (13)启动任务 (14)进程和线程 (14)进程 (15)线程 (15)远程过程调用 (15)线程安全方法 (16)组件生命周期 (17)Activity生命周期 (17)调用父类 (18)服务生命周期 (21)广播接收器生命周期 (22)进程与生命周期 (22)用户界面User Interface (24)视图层次View Hierarchy (24)布局Layout (25)部件Widgets (26)用户界面事件UI Events (26)菜单Menus (26)高级话题Advanced Topics (27)适配器Adapter (27)风格与主题Styles and Themes (27)资源和资产Resources and Assets (28)资源引用Resource Reference (43)国际化和本地化Internationalization and Localization (43)意图和意图过滤器Intents and Intent Filters (43)意图过滤器Intent filters (47)通常情况Common cases (51)使用意图匹配Using intent matching (52)数据存储Data Storage (52)概览Storage quickview (52)系统偏好:快速,轻量级存储 (52)文件:存储到设备内部或可移动闪存 (52)数据库:任意的结构化存储 (52)支持基于网络的存储 (52)系统偏好Preferences (53)文件Files (54)数据库Databases (54)网络Network (55)内容提供器Content Providers (55)内容提供器的基础知识Content Provider Basics (55)查询一个内容提供器Querying a Content Provider (57)修改数据Modifying Data (61)创建一个内容提供器Creating a Content Provider (64)Content URI 总结 (67)清单文件The AndroidManifest.xml File (68)清单文件结构Structure of the Manifest File (68)文件约定File Conventions (70)文件特性File Features (73)应用程序基础Application Fundamentals关键类1. Activity2. Service3. BroadcastReceiver4. ContentProvider5. IntentAndroid应用程序使用Java做为开发语言。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

英文原文及译文Application FundamentalsAndroid applications are written in the Java programming language. The compiled Java code —along with any data and resource files required by the application —is bundled by the aapt tool into an Android package, an archive file marked by an .apk suffix. This file is the vehicle for distributing the application and installing it on mobile devices; it's the file users download to their devices. All the code in a single .apk file is considered to be one application.In many ways, each Android application lives in its own world:1. By default, every application runs in its own Linux process. Android starts the process when any of the application's code needs to be executed, and shuts down the process when it's no longer needed and system resources are required by other applications.2. Each process has its own virtual machine (VM), so application code runs in isolation from the code of all other applications.3. By default, each application is assigned a unique Linux user ID. Permissions are set so that the application's files are visible only to that user and only to the application itself — although there are ways to export them to other applications as well.It's possible to arrange for two applications to share the same user ID, in which case they will be able to see each other's files. To conserve system resources, applications with the same ID can also arrange to run in the same Linux process, sharing the same VM.Application ComponentsA central feature of Android is that one application can make use of elements of other applications (provided those applications permit it). For example, if your application needs to display a scrolling list of images and another application has developed a suitable scroller and made it available to others, you can call upon that scroller to do the work, rather than develop your own. Your application doesn't incorporate the code of the other application or link to it. Rather, it simply starts up that piece of the other application when the need arises.For this to work, the system must be able to start an application process when any part of it is needed, and instantiate the Java objects for that part. Therefore, unlike applications on most other systems, Android applications don't have a single entry point for everything in the application (no main() function, for example). Rather, they have essential components that the system can instantiate and run as needed. There are four types of components:ActivitiesAn activity presents a visual user interface for one focused endeavor the user can undertake. For example, an activity might present a list of menu items users can choose from or it might display photographs along with their captions. A text messaging application might have one activity that shows a list of contacts to send messages to, a second activity to write the message to the chosen contact, and other activities to review old messages or change settings. Though they work together to form a cohesive user interface, each activity is independent of the others. Each one is implemented as a subclass of the Activity base class.An application might consist of just one activity or, like the text messaging application just mentioned, it may contain several. What the activities are, and how many there are depends, of course, on the application and its design. Typically, one of the activities is marked as the first one that should be presented to the user when the application is launched. Moving from one activity to another is accomplished by having the current activity start the next one.Each activity is given a default window to draw in. Typically, the window fills the screen, but it might be smaller than the screen and float on top of other windows. An activity can also make use of additional windows — for example, a pop-up dialog that calls for a user response in the midst of the activity, or a window that presents users with vital information when they select a particular item on-screen.The visual content of the window is provided by a hierarchy of views — objects derived from the base View class. Each view controls a particular rectangular space within the window. Parent views contain and organize the layout of their children. Leaf views (those at the bottom of the hierarchy) draw in the rectangles they control and respond to user actions directed at that space. Thus, views are where the activity's interaction with the user takes place.For example, a view might display a small image and initiate an action when the user taps that image. Android has a number of ready-made views that you can use —including buttons, text fields, scroll bars, menu items, check boxes, and more.A view hierarchy is placed within an activity's window by the Activity.setContentView() method. The content view is the View object at the root of the hierarchy. (See the separate User Interface document for more information on views and the hierarchy.)ServicesA service doesn't have a visual user interface, but rather runs in the background for an indefinite period of time. For example, a service might play background music as the user attends to other matters, or it might fetch data over the network or calculate something and provide the result to activities that need it. Each service extends the Service base class.A prime example is a media player playing songs from a play list. The player application would probably have one or more activities that allow the user to choose songs and start playing them. However, the music playback itself would not be handled by an activity because users will expect the music to keep playing even after they leave the player and begin something different. To keep the music going, the media player activity could start a service to run in the background. The system would then keep the music playback service running even after the activity that started it leaves the screen.It's possible to connect to (bind to) an ongoing service (and start the service if it's not already running). While connected, you can communicate with the service through an interface that the service exposes. For the music service, this interface might allow users to pause, rewind, stop, and restart the playback.Like activities and the other components, services run in the main thread of the application process. So that they won't block other components or the user interface, they often spawn another thread for time-consuming tasks (like music playback). See Processes and Threads, later.Broadcast receiversA broadcast receiver is a component that does nothing but receive and react to broadcast announcements. Many broadcasts originate in system code — for example, announcements that the timezone has changed, that the battery is low, that a picture has been taken, or that the user changed a language preference. Applications can also initiate broadcasts — for example, to let other applications know that some data has been downloaded to the device and is available for them to use.An application can have any number of broadcast receivers to respond to any announcements it considers important. All receivers extend the BroadcastReceiver base class.Broadcast receivers do not display a user interface. However, they may start an activity in response to the information they receive, or they may use the NotificationManager to alert the user. Notifications can get the user's attention in various ways — flashing the backlight, vibrating the device, playing a sound, and so on. They typically place a persistent icon in the status bar, which users can open to get the message.Content providersA content provider makes a specific set of the application's data available to other applications. The data can be stored in the file system, in an SQLite database, or in any other manner that makes sense. The content provider extends the ContentProvider base class to implement a standard set of methods that enable other applications to retrieve and store data of the type it controls. However, applications donot call these methods directly. Rather they use a ContentResolver object and call its methods instead. A ContentResolver can talk to any content provider; it cooperates with the provider to manage any interprocess communication that's involved.See the separate Content Providers document for more information on using content providers.Whenever there's a request that should be handled by a particular component, Android makes sure that the application process of the component is running, starting it if necessary, and that an appropriate instance of the component is available, creating the instance if necessary.Activating components: intentsContent providers are activated when they're targeted by a request from a ContentResolver. The other three components —activities, services, and broadcast receivers — are activated by asynchronous messages called intents. An intent is an Intent object that holds the content of the message. For activities and services, it names the action being requested and specifies the URI of the data to act on, among other things. For example, it might convey a request for an activity to present an image to the user or let the user edit some text. For broadcast receivers, the Intent object names the action being announced. For example, it might announce to interested parties that the camera button has been pressed.There are separate methods for activating each type of component:1. An activity is launched (or given something new to do) by passing an Intent object toContext.startActivity() or Activity.startActivityForResult(). The responding activity can look at the initial intent that caused it to be launched by calling its getIntent() method. Android calls the activity's onNewIntent() method to pass it any subsequent intents. One activity often starts the next one. If it expects a result back from the activity it's starting, it calls startActivityForResult() instead of startActivity(). For example, if it starts an activity that lets the user pick a photo, it might expect to be returned the chosen photo. The result is returned in an Intent object that's passed to the calling activity's onActivityResult() method.2. A service is started (or new instructions are given to an ongoing service) by passing an Intent object to Context.startService(). Android calls the service's onStart() method and passes it the Intent object. Similarly, an intent can be passed to Context.bindService() to establish an ongoing connection between the calling component and a target service. The service receives the Intent object in an onBind() call. (If the service is not already running, bindService() can optionally start it.) For example, an activity might establish a connection with the music playback service mentioned earlier so that it can provide the user with the means (a user interface) forcontrolling the playback. The activity would call bindService() to set up that connection, and then call methods defined by the service to affect the playback.A later section, Remote procedure calls, has more details about binding to a service.3. An application can initiate a broadcast by passing an Intent object to methods like Context.sendBroadcast(), Context.sendOrderedBroadcast(), and Context.sendStickyBroadcast() in any of their variations.Android delivers the intent to all interested broadcast receivers by calling their onReceive() methods. For more on intent messages, see the separate article, Intents and Intent Filters.Shutting down componentsA content provider is active only while it's responding to a request from a ContentResolver. And a broadcast receiver is active only while it's responding to a broadcast message. So there's no need to explicitly shut down these components.Activities, on the other hand, provide the user interface. They're in a long-running conversation with the user and may remain active, even when idle, as long as the conversation continues. Similarly, services may also remain running for a long time. So Android has methods to shut down activities and services in an orderly way:1. An activity can be shut down by calling its finish() method. One activity can shut down another activity (one it started with startActivityForResult()) by calling finishActivity().2. A service can be stopped by calling its stopSelf() method, or by calling Context.stopService().Components might also be shut down by the system when they are no longer being used or when Android must reclaim memory for more active components. A later section, Component Lifecycles, discusses this possibility and its ramifications in more detail.The manifest fileBefore Android can start an application component, it must learn that the component exists. Therefore, applications declare their components in a manifest file that's bundled into the Android package, the .apk file that also holds the application's code, files, and resources.The manifest is a structured XML file and is always named AndroidManifest.xml for all applications. It does a number of things in addition to declaring the application's components, such as naming any libraries the application needs to be linked against (besides the default Android library) and identifying any permissions the application expects to be granted.But the principal task of the manifest is to inform Android about the application's components. For example, an activity might be declared as follows:The name attribute of the <activity>element names the Activity subclass that implements the activity. The icon and label attributes point to resource files containing an icon and label that can be displayed to users to represent the activity.The other components are declared in a similar way —<service>elements for services, <receiver>elements for broadcast receivers, and <provider>elements for content providers. Activities, services, and content providers that are not declared in the manifest are not visible to the system and are consequently never run. However, broadcast receivers can either be declared in the manifest, or they can be created dynamically in code (as BroadcastReceiver objects)andregistered with the system by calling Context.registerReceiver().For more on how to structure a manifest file for your application, see The Android Manifest.xml File.Intent filtersAn Intent object can explicitly name a target component. If it does, Android finds that component (based on the declarations in the manifest file) and activates it. But if a target is not explicitly named, Android must locate the best component to respond to the intent. It does so by comparing the Intent object to the intent filters of potential targets. A component's intent filters inform Android of the kinds of intents the component is able to handle. Like other essential information about the component, they're declared in the manifest file. Here's an extension of the previous example that adds two intent filters to the activity:The first filter in the example —the combination of the action "android.intent.action.MAIN" and the category"UNCHER" —is a common one. It marks the activity as one that should be represented in the application launcher, the screen listing applications users can launch on the device. In other words, the activity is the entry point for the application, the initial one users would see when they choose the application in the launcher.The second filter declares an action that the activity can perform on a particular type of data.A component can have any number of intent filters, each one declaring a different set of capabilities. If it doesn't have any filters, it can be activated only byintents that explicitly name the component as the target.For a broadcast receiver that's created and registered in code, the intent filter is instantiated directly as an IntentFilter object. All other filters are set up in the manifest.For more on intent filters, see a separate document, Intents and Intent Filters.应用程序基础Android DevelopersAndroid应用程序使用Java编程语言开发。

相关文档
最新文档