如何使用 .apk 文件制作 EXE 文件

发布于 2024-09-02 06:51:14 字数 105 浏览 4 评论 0原文

我的 android 项目快完成了,现在我想制作应用程序的可执行版本。

我需要以 .exe 形式将其演示为模拟器上的软应用程序,而不是通过 Eclipse 的构建和调试过程来演示。

am almost done with my project in android, now I want to make the executable version of the application.

I need to demonstrate it in .exe form as soft app as on emulator, not by built and debug process from eclipse.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

携余温的黄昏 2024-09-09 06:51:14

操作员的要求很简单 - 他想要创建一个 MS Windows 程序文件,就像他制作的 APK 一样运行。

不幸的是,这无法做到。正如人们所说,“炫耀”您的程序的唯一方法是:

  1. 通过 Windows 上的模拟器
  2. 在实际设备上(安装后,您可以断开设备与计算机的连接并像普通应用程序一样使用它)

what the op is asking for is simple - he wants to create a MS Windows program file that runs just like the APK he's made.

Unfortunately this cannot be done. The only way to 'show off' your program is as people have stated:

  1. Through the emulator on Windows
  2. On an acual device (Once installed, you can disconnect the device from the computer and use it like a normal app)
戴着白色围巾的女孩 2024-09-09 06:51:14

您无法将 APK 文件转换为 .exe 文件。 APK 文件已将 Android 应用程序作为可自行安装的文件保存 - 在手机或模拟器上打开 APK 文件将开始安装过程。听起来您只想使用“正确的”密钥对应用程序进行签名,而不是使用调试密钥。为此,请阅读有关应用签名的官方页面

You can't convert an APK file into a .exe file. APK files hold Android apps as self-installable files already - opening an APK file on a phone or the emulator will start the installation process. It sounds like you just want to sign the app with a 'proper' key rather than using a debug key. To do that, read the official page on signing apps.

孤单情人 2024-09-09 06:51:14

您不需要创建 .EXE 文件来执行您想要的操作。您只需创建一个执行 adb 命令的 bat 文件,该命令将: 在模拟器中安装并启动您的应用程序。我想,这里的问题是你不明白 APK 文件是如何工作的......我只是说。

好的...为了使用 adb 安装 Android 应用程序(这基本上是 Eclipse 在后台执行的操作),您需要执行以下操作:

adb install path/name_app.apk

然后,您可以使用 adb 启动应用程序shell am 命令。您可以在这里找到信息: http://pdk.android.com/online- pdk/guide/instrumentation_testing.html

您必须考虑的另一件事是,您必须在安装和执行应用程序之前运行 AVD:http://developer.android.com/guide/developing/tools/avd.html

您必须执行的所有命令(可能是使用我之前提到的 .bat 文件)是可以在 android-sdk\tools 目录中找到的可执行文件。

You don't need to create a .EXE file for doing what you want. You can just create a bat file that executes adb commands that will: install and start your application in the emulator. I guess, the problem here is that you don't understand how the APK files work... I'm just saying.

OK... in order to install an Android application using adb (which is basically what Eclipse does in the background) you need to do this:

adb install path/name_app.apk

Then, you can start the application by using adb shell am command. You can find info here: http://pdk.android.com/online-pdk/guide/instrumentation_testing.html

Another thing you have to take in account is that you will have to run the AVD before installing and executing your application: http://developer.android.com/guide/developing/tools/avd.html

All those commands you have to execute (may be using a .bat file as I mentioned before) are executables that you can find in the android-sdk\tools directory.

亚希 2024-09-09 06:51:14

当我有一个客户想要展示一个应用程序时,例如在会议上,我总是使用 Bluestacks,它并不完美,但它允许您在计算机上运行 Android 应用程序,而无需执行所有技术操作(例如安装模拟器等)。

要使用 Bluestacks 设备/模拟器在您的计算机上安装应用程序,您只需单击该 apk 即可。

http://bluestacks.com/

When I have a client that want's to show an app, at conference for example, I always use Bluestacks it's not perfect but it allows you to run android apps on your computer without doing all the technical stuff (like installing an emulator etc).

To install an app on your you computer using the Bluestacks device/emulator you simply click on the apk.

http://bluestacks.com/

楠木可依 2024-09-09 06:51:14

在 Eclipse 中创建项目/应用程序后,您还创建了 .apk 文件。 Android 可以运行 .apk 文件,因此请转到保存项目的位置并将其打开,例如 Open Project -->bin-->.apk

现在通过蓝牙将 .apk 文件发送到您的 Android 手机或复制它。

Once you create a project/application in Eclipse then along with this you also have created the .apk file. Android can run .apk files, so go to the place where your project have been saved and open it, like this Open Project -->bin-->.apk.

Now send the .apk file to your android phone through Bluetooth or copy it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文