欢迎来到毕设资料网! | 帮助中心 毕设资料交流与分享平台
毕设资料网
全部分类
  • 毕业设计>
  • 毕业论文>
  • 外文翻译>
  • 课程设计>
  • 实习报告>
  • 相关资料>
  • ImageVerifierCode 换一换
    首页 毕设资料网 > 资源分类 > DOC文档下载
    分享到微信 分享到微博 分享到QQ空间

    Android应用架构外文翻译

    • 资源ID:125863       资源大小:64KB        全文页数:10页
    • 资源格式: DOC        下载积分:100金币
    快捷下载 游客一键下载
    账号登录下载
    三方登录下载: QQ登录
    下载资源需要100金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

    Android应用架构外文翻译

    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

    8、ion is valid. This will prevent your application being installed on devices with older SDK versions. 2、 R.java and Resources The gen directory in an Android project contains generated values. R.java is a generated class which contains references to certain resources of the project. These resources m

    9、ust be defined in the res directory and can be XML files, icons or pictures. You can for example define values, menus, layouts or animations via XML files. If you create a new resource, the corresponding reference is automatically created in R.java via the Eclipse ADT tools. These references are sta

    10、tic int values and define IDs for the resources. The Android system provides methods to access the corresponding resource via these IDs. For example to access a String with the R.string.yourString ID, you would use the getString(R.string.yourString) method. R.java is automatically created by the Ecl

    11、ipse development environment, manual changes are not necessary and will be overridden by the tooling. 3、 Assets While the res directory contains structured values which are known to the Android platform, the assets directory can be used to store any kind of data. You access this data via the AssetsM

    12、anager which you can access the getAssets() method. AssetsManager allows to read an assets as InputStream with the open() method. / Get the AssetManager AssetManager manager = getAssets(); / Read a Bitmap from Assets try InputStream open = manager.open(logo.png); Bitmap bitmap = BitmapFactory.decode

    13、Stream(open); / Assign the bitmap to an ImageView in this layout ImageView view = (ImageView) findViewById(R.id.imageView1); view.setImageBitmap(bitmap); catch (IOException e) e.printStackTrace(); 4、 Activities and Layouts The user interface for Activities is defined via layouts. The layout defines

    14、the included Views (widgets) and their properties. A layout can be defined via Java code or via XML. In most cases the layout is defined as an XML file. XML based layouts are defined via a resource file in the /res/layout folder. This file specifies the ViewGroups, Views, their relationship and their attributes for


    注意事项

    本文(Android应用架构外文翻译)为本站会员(泛舟)主动上传,毕设资料网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请联系网站客服QQ:540560583,我们立即给予删除!




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们
    本站所有资料均属于原创者所有,仅提供参考和学习交流之用,请勿用做其他用途,转载必究!如有侵犯您的权利请联系本站,一经查实我们会立即删除相关内容!
    copyright@ 2008-2025 毕设资料网所有
    联系QQ:540560583