`
weiweirenhong
  • 浏览: 32577 次
  • 性别: Icon_minigender_1
  • 来自: 西安
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
Processes and Threads--进程与线程 When the first of an application's components needs to be run, Android starts a Linux process for it with a single thread of execution. By default, all components of the application run in that process and thread. 翻译:一旦应用中的某个组件需要 ...
Starting tasks An activity is set up as the entry point for a task by giving it an intent filter with "android.intent.action.MAIN" as the specified action and "android.intent.category.LAUNCHER" as the specified category. (There's an example of this type of filter in the earlier I ...
Clearing the stack--堆栈清理 If the user leaves a task for a long time, the system clears the task of all activities except the root activity. When the user returns to the task again, it's as the user left it, except that only the initial activity is present. The idea is that, after a time, users will l ...
Launch modes-启动模式 There are four different launch modes that can be assigned to an <activity> element's launchMode attribute:翻译:activity元素的launchMode属性可以设定为以下四种值: "standard" (the default mode) "singleTop" "singleTask" "singleInstance" The modes differ ...
Affinities and new tasks By default, all the activities in an application have an affinity for each other — that is, there's a preference for them all to belong to the same task. However, an individual affinity can be set for each activity with the taskAffinity attribute of the <activity> elem ...
Activities and Tasks As noted earlier, one activity can start another, including one defined in a different application. Suppose, for example, that you'd like to let users display a street map of some location. There's already an activity that can do that, so all your activity needs to do is put tog ...
Intent 过滤器 Intent 对象可以显式指定目标组件.一旦显式指定了目标组件,Android 操作系统直接根据指定的目标组件名在AndroidManifest.xml文件中查找该组件声明,找到之后立即激活该组件。如果Intent 对象没有显式指定目标组件, Android 操作系统必须从AndroidManifest.xml文件中的所有intent过滤器中定位到一个最佳匹配的intent声明. 匹配过程事实上是把该 Intent 对象与 intent filters 中定义的intent元素做比对,一旦比对成功,Intent 过滤器立即通知Android 操作系统该过滤器所归属的组件可 ...
The manifest file Android启动应用程序组件之前,首先必须知道被启动的应用中都有哪些组件.所以应用程序需要在manifest文件中声明该应用都绑定了什么组件, 在应用程序对应的.apk文件中同时也包含了应用程序代码、文件以及相关的资源。 manifest是一个 XML 文件,总是被命名为AndroidManifest.xml,其中,并非仅仅是声明组件,同时该文件中还可能指定该应用所需的类库以及该应用希望被授权的许可。 但是该文件的最主要作用是告知Android系统该应用所关联的组件信息例如:一个activity可以用下面的方式在AndroidManifest.xml中 ...
Activating components: intents----组件的激活 Content 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 ho ...
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 scrol ...
   Android 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《翻译:Android应用由Java代码编写,编译生成的Java字节代码和相关的数据或资 ...
这几天在用jexcelapi,去下载了最新的jexcelapi:jexcelapi_2_6_11.zip,解压后把其中的jxl.jar添加到工程类库中。做了个测试测序,遇到以下错误: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Nati ...
Global site tag (gtag.js) - Google Analytics