如何在 HTC Magic 上安装 Android 应用程序?
我有兴趣为我的 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 技术交流群。

选项#1:将您的 Magic 连接到您的开发机器。当您从 Eclipse 运行应用程序时,有一个选项可以让您选择运行它的位置 - 选择手机。抱歉,我不是 Eclipse 用户,所以我不记得具体步骤。
选项#2:将您的 Magic 连接到您的开发机器。从命令行运行
adb install path/to/your.apk
(替换为 APK 文件的适当路径)。如果 SDKtools/
目录位于您的 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 SDKtools/
directory is in your PATH, you can run that command from anywhere, otherwise you will need to run it fromtools/
.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.