如何在 HTC Magic 上安装 Android 应用程序?

发布于 08-10 02:21 字数 318 浏览 5 评论 0原文

我有兴趣为我的 HTC Magic (Android) 手机开发应用程序。 使用 android 开发者网站 上的说明,我使用正确的插件安装了 eclipse,创建了 AVD 并编写了我的第一个 Hello在 AVD 中运行的 World 应用程序。我现在想在我的 HTC Magic 上安装 Hello World 应用程序,但我似乎不知道该怎么做。我已经成功创建了一个签名的 .apk 文件,并将该文件存储在手机的 SD 卡上,但仍然无法安装它。

有人可以帮我吗?

I am interested in developing an app for my HTC Magic (Android) phone.
Using instructions on android's developer site, I installed eclipse with the right plugins, got created the AVD and wrote my first Hello World app which ran in the AVD. I would now like to install that Hello World app on my HTC Magic, but I can't seem to figure out how to do that. I've managed to create a signed .apk file and I've stored that file on the SD card of my phone, but still I can't install it.

Can anyone please help me?!

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

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

发布评论

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

评论(2

花开半夏魅人心2024-08-17 02:21:11

选项#1:将您的 Magic 连接到您的开发机器。当您从 Eclipse 运行应用程序时,有一个选项可以让您选择运行它的位置 - 选择手机。抱歉,我不是 Eclipse 用户,所以我不记得具体步骤。

选项#2:将您的 Magic 连接到您的开发机器。从命令行运行 adb install path/to/your.apk (替换为 APK 文件的适当路径)。如果 SDK tools/ 目录位于您的 PATH 中,您可以从任何位置运行该命令,否则您将需要从 tools/ 运行它。

选项 #3:从 Android Market 将文件管理器程序下载到您的 Magic 上,然后使用该程序安装 SD 卡上的 APK 文件。

Option #1: Connect your Magic to your development machine. There is an option when you run the app from Eclipse that lets you pick where to run it -- choose the phone. Sorry, but I'm not an Eclipse user, so I do not recall the specific steps.

Option #2: Connect your Magic to your development machine. From the command line, run adb install path/to/your.apk (substituting in an appropriate path to your APK file). If the SDK tools/ directory is in your PATH, you can run that command from anywhere, otherwise you will need to run it from tools/.

Option #3: Download a file manager program from the Android Market onto your Magic, and use that to install the APK file as found on your SD card.

酸甜透明夹心2024-08-17 02:21:11

.apk 文件是一种安装文件。只需使用手机上的文件浏览器“打开”它,它就会为您安装该应用程序。

The .apk file is a kind of install file. Just use a file browser on your phone to "open" it, and it should install the app for you.

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