简体   繁体   English

如何保存我的Android应用程序,以便最终用户可以在没有Android SDK的情况下执行它

[英]How can I save my Android application so that the end-user can execute it without the Android SDK

I have recently started programming for the Android platform. 我最近开始为Android平台编程。 I have a simple application which I would like to email to someone so that they can execute the application and check how it works. 我有一个简单的应用程序,我想通过电子邮件发送给某人,以便他们可以执行该应用程序并检查其工作方式。

I am currently using the Emulator in the Android SDK to execute my application but the person who I am emailing it to does not have Android SDK and it would be a mission to send the whole project folder. 我目前在Android SDK中使用仿真器来执行我的应用程序,但是向我发送电子邮件的人没有Android SDK,这将是发送整个项目文件夹的任务。

Is there any way that I can send just one file such as an .exe or something that would allow the recipient to execute the application to see how it works. 有什么方法可以仅发送一个文件(例如.exe)或其他可以使收件人执行应用程序以查看其工作方式的文件。

Thanks so much for your help in advance guys 非常感谢您对大家的帮助

The "exe" for android is called apk. Android的“ exe”称为apk。 I suggest you to look at this question. 我建议你看看这个问题。 You'll need to build the apk and sign it in order to be able to run it. 您需要构建apk并对其进行签名才能运行它。

If you just want to send it to a user for testing purposes, you can enable the setting in the target android device to allow "unknown sources" (I don't know the proper english name, as I don't have an english android here at the moment). 如果您只想将其发送给用户进行测试,则可以在目标android设备中启用该设置,以允许“未知来源”(我不知道英文名的正确名称,因为我没有英文android。此刻)。 You can find this in the app settings. 您可以在应用设置中找到它。

In your development environment look for the apk file created by eclipse. 在您的开发环境中,查找由eclipse创建的apk文件。 Then connect your smartphone to the pc and copy the apk over. 然后将您的智能手机连接到PC并复制apk。 Start up a file manager and click on the apk and it will install just like any other app. 启动文件管理器,然后单击apk,它将与其他任何应用程序一样安装。

If you want to deploy it properly, you have to sign it and probably follow the procedures from google. 如果您想正确部署它,则必须对其进行签名,并可能遵循google的步骤。 Since I don't have a fully deployable app yet, I can't say what the procedures is for that, but the google site is very helpfull on all aspects about android programming. 由于我还没有完全可部署的应用程序,因此我无法说说该程序的用途,但是Google网站在有关Android编程的各个方面都非常有帮助。

Check the "bin" folder in your project path. 检查项目路径中的“ bin”文件夹。 There you will have a .apk that you can share with your clients. 在那里,您将拥有一个.apk,可以与您的客户共享。

If they execute it in an Android mobile phone the application will be installed. 如果他们在Android手机中执行该程序,则将安装该应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 关闭 Android 应用程序后如何保存对象? - how can I save objects after closing my Android application? 如何显示从API到最终用户的错误消息? - How can I show error message from API to the end-user? 如何在没有错误的情况下启动Android SQLite应用程序 - How I can start my Android SQLite Application without a Error 无法结束我的android应用程序 - Can't end my android application 如何在我的Android应用程序中添加动作栏标签,使其跨平台兼容? - How can I add actionbar tabs to my Android application so that it is cross platform compatible? Android:如何在不提高我的SDK版本的情况下停止支持平板电脑? - Android: How can I stop supporting tablets without raising my SDK version? 如何使我的应用程序(.jar)在最终用户的桌面上工作 - how to make my application (.jar) works on end-user's desktop 如何在我的 Android 应用程序中保存 HashMap? - How can I can save HashMap in my Android app? 手机收到通知后如何在没有任何用户交互的情况下自动打开 Android 应用程序 - How I can Open Android Application Automatically Once The Phone Received notification Without any user interaction 离线时如何在Android应用程序中保存数据? - How can I save data when offline in my Android app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM