如何创建一个Delphi应用程序的Andr​​oid APK包含文件 [英] How to create a Delphi Android Application APK to include files

查看:696
本文介绍了如何创建一个Delphi应用程序的Andr​​oid APK包含文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何包括文件和/或包含有一个Android应用程序APK文件文件的文件夹。德尔菲运行过程抹资产目录和文件/文件夹我放在那里不包括在APK包中的内容。我想你必须手动添加System.StartupCopy您.DRP单位的文件和/或文件夹拷贝到TPath.GetDocumentsPath()指定的路径

How do you include files and/or folders containing files with an Android application APK file. The Delphi run process wipes the contents of the Assets directory and the files/folders I placed there are not included in the APK package. I assume you must manually add System.StartupCopy to your .DRP unit to copy the files and/or folders to path specified by TPath.GetDocumentsPath().

推荐答案

使用项目 - >部署主菜单项目,它允许你把文件到安装,售后服务为它们指定的位置安装。请参阅部署你的最后一个Android应用程序的Andr​​oid移动应用程序开发在文档中的主题。

Use the Project->Deployment main menu item, which allows you to put files into the installation and specify the location for them after install. See Deploying Your Final Android Application in the Android Mobile Application Development topic in the documentation.

点击通过一点点就会让你<一个href=\"http://docwiki.embarcadero.com/RADStudio/XE5/en/$p$pparing_an_Android_Application_for_Deployment\"相对=nofollow> preparing进行部署,这对配置选项用于部署应用程序一步一步列表中的Andr​​oid应用程序:

Clicking through a little will get you to Preparing an Android Application for Deployment, which has a step-by-step list on configuring the options for deploying the app:

您必须对您的Andr​​oid应用构建分配的应用程序之前配置几个选项。您配置的属性捆绑了您的应用程序,在AndroidManifest.xml文件。你建立并签上您的应用程序后,您不能修改这些属性。由于这些特性提供有关应用程序的关键信息,你应该确保它们包含正确的值在部署应用程序之前,或者你可能必须重建,以改变配置的值您的应用程序。

You must configure several options for your Android app before you build the application for distribution. The properties that you configure are bundled with your application, in the AndroidManifest.xml file. You cannot modify these properties after you build and sign your application. Because these properties provide key information about your application, you should ensure that they contain the correct values before you deploy your application, or you might have to rebuild your application in order to change the configured values.

您的Andr​​oid应用程序的每个版本之前,您应该检查每个设置的配置是否正确。

Before each release of your Android application, you should check that every setting is properly configured.

要配置Android应用:

To configure your Android app:


      
  • 在项目>选项>应用程序页面上,提供图标和图像重present您的应用程序。

  •   
  • 在项目>选项>版本信息页面,提高应用程序的版本code。应用商店如谷歌播放可能会要求您的应用程序的新版本总是有更高的版本,code比previous版本。

  •   
  • 在项目>选项>使用权限页,确定您的应用程序运行所需的权限。

  •   
  • 在项目>选项>配置页面,在目标选择要使用的部署应用程序(例如,版本),并提供一个密钥存储文件,如果您尚未创建了一个构建配置。这一步是必要的,以便在有USB调试禁用,您的应用程序分发到其他的设备安装应用程序。有关密钥库文件的详细信息,请参阅: HTTP: //docs.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html

  •   
  • On the Project > Options > Application page, provide the icons and images to represent your application.
  • On the Project > Options > Version Info page, increase the version code of your application. Application stores such as Google Play may require that newer versions of your application always have a higher version code than previous versions.
  • On the Project > Options > Uses Permissions page, define the permissions that your application requires to work.
  • On the Project > Options > Provisioning page, select in Target the build configuration that you want to use to deploy your application (for example, Release) and provide a KeyStore file if you have not already created one. This step is necessary in order to install your application in a device that has USB debugging disabled and to distribute your application to others. For more information about keystore files, see: http://docs.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html.

还有关于自定义AndroidManifest.xml文件的东西像版本号和名称,所需的权限,等等的部分。

There's also a section on customizing the AndroidManifest.xml file for things like version number and name, required permissions, and so forth.

这篇关于如何创建一个Delphi应用程序的Andr​​oid APK包含文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆