Android应用架构外文翻译
《Android应用架构外文翻译》由会员分享,可在线阅读,更多相关《Android应用架构外文翻译(10页珍藏版)》请在毕设资料网上搜索。
1、 Android Application Architecture author: Lars Vogel 1、 AndroidManifest.xml The components and settings of an Android application are described in the file AndroidManifest.xml. For example all Activities and Services of the application must be declared in this file. It must also contain the required
2、 permissions for the application. For example if the application requires network access it must be specified here. The package attribute defines the base package for the Java objects referred to in this file. If a Java object lies within a different package, it must be declared with the full qualif
3、ied package name. Google Play requires that every Android application uses its own unique package. Therefore it is a good habit to use your reverse domain name as package name. This will avoid collisions with other Android applications. android:versionName and android:versionCode specify the version
4、 of your application. versionName is what the user sees and can be any String. versionCode must be an integer. The Android Market determine based on the versionCode, if it should perform an update of the applications for the existing installations. You typically start with 1 and increase this value
5、by one, if you roll-out a new version of your application. The tag defines an Activity, in this example pointing to the Convert class in the de.vogella.android.temperature package. An intent filter is registered for this class which defines that this Activity is started once the application starts (
6、action android:name=android.intent.action.MAIN). The category definition category android:name=android.intent.category.LAUNCHER defines that this application is added to the application directory on the Android device. The string/app_name value refers to resource files which contain the actual value
7、 of the application name. The usage of resource file makes it easy to provide different resources, e.g. strings, colors, icons, for different devices and makes it easy to translate applications. The uses-sdk part of the AndroidManifest.xml file defines the minimal SDK version for which your applicat
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- android 应用 利用 运用 架构 外文 翻译
