如何使用 Eclipse 将 .apk 文件传输到设备

发布于 2024-09-18 10:49:09 字数 421 浏览 5 评论 0原文

一定出问题了我的雇主不允许任何人访问我们计算机上的运行/线路命令工具。如果没有该控制,就无法运行 ADB(Android 调试桥)。我使用的是Windows,无法访问注册表,无法手动添加cmd.exe,我已经尝试过了..)但拧紧员工确实是降低IT成本的方法,叹息。

我注意到,有时当使用通过 USB 插入的真实设备通过 Eclipse 进行测试时,该应用程序会显示在我的 Android 设备上......而其他时候则不会。

有没有办法使用带有 Android 插件的 Eclipse 工具来“安装”我正在编写的应用程序到我的真实物理设备上?只要我插入 USB,它们就可以正常测试。但断开连接后就不会保留。

我知道,找到一个新雇主可能是最好的答案,但现在还不可能。不过,这是个好建议:)

有人知道将程序安装到硬件的解决方法吗?

预先非常感谢, 拉链

Gotta problem. My employer won't allow anybody access to run / line command tools on our computers. No way to run ADB (Android Debug Bridge) without that control. I'm using windows, no way to access the registry, no way to manually add cmd.exe, i've tried..) Screwing the staff is a sure way to reduce IT costs though, sigh.

I notice that sometimes when testing thru Eclipse with a real device plugged in via USB, that the application shows up on my android device.. and other times not.

Is there any way to use the Eclipse tools with Android plug in to 'install' the applications that I'm writing onto my real, physical device? They test fine as long as I'm USB plugged in. but don't remain after I disconnect.

I know, getting a new employer is probably the best answer here, but that's not in the cards right now. Good suggestion though : )

Anyone know of a work around for program installation to hardware?

Many thanks in advance,
zip

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

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

发布评论

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

评论(6

薄情伤 2024-09-25 10:49:09

你真的不需要做任何特别的事情。当您从 Eclipse 运行应用程序时,无论您是在模拟器还是设备上运行它,它都只是使用 adb 来安装它。如果此时您与计算机断开连接,它将保留。已安装。没有特殊的“应用程序正在运行但未安装”状态。

我真的很想知道你在什么情况下发现你的软件被卸载了。

You really shouldn't need to do anything special. When you run an app from Eclipse, whether you are running it on the emulator or a device, it just uses adb to install it. If you disconnect from your computer at that point, it will remain. It is installed. There isn't a special "app running but not installed" state.

I'd be really curious to know in what situations you are finding your up uninstalled.

泅渡 2024-09-25 10:49:09

我使用 Dropbox 将正在处理的 apk 安装到真实设备上。将 .apk 从 /bin 目录直接复制到您的 dropbox 中,然后使用 dropbox 应用程序进行 d/l 并将其安装在手机上。

I install the apk I am working on to a real device using Dropbox. Copy .apk from /bin directory right into your dropbox and then use the dropbox app to d/l and install it on the phone.

挽心 2024-09-25 10:49:09

通过 USB 插入时,您可以挂载设备的文件系统。从这里,将 .apk 从您的开发计算机复制到 SD 卡上的某个位置。最后,获取 Astro 文件管理器或 AndroZip 等免费应用程序来查找设备文件系统上的 .apk。选择 .apk 后,系统会提示您如何打开它。如果使用应用程序管理器打开它,则可以在设备上安装/卸载它。

You can mount your device's filesystem when plugged in via USB. From here, copy the .apk from your development computer to a location on the sdcard. Finally, get a free app like Astro File Manager or AndroZip to find the .apk on your device's filesystem. Once you select the .apk, you should be prompted with how you want to open it. If you open it with the app manager, you can install/uninstall it on the device.

桃酥萝莉 2024-09-25 10:49:09
  1. 将 .apk 从 /bin/res 复制到桌面(或者 DropBox 中的所需文件夹,如果有的话)
  2. 通过 USB 连接手机并将其设为存储设备(即:闪存)驾驶)。
  3. 将文件拖进去,双击它并选择安装

我有 3 部 Android 手机,一部 Android 2.1,两部带有 ICS,但它们都不能以标准方式识别。

  1. Copy the .apk from /bin/res to, say, the desktop (or a desired folder in DropBox if you have it)
  2. Hook your phone up via USB and make it a storage device (ie: flash drive).
  3. Drag the file in, double click on it and choose install

I have 3 android phones, one Android 2.1 and two with ICS, and they aren't all recognized the standard way.

迷荒 2024-09-25 10:49:09

另一种方法是通过 PC 的 USB 端口将 apk 加载到 SD 卡上,然后将该 SD 卡插入手机(大多数 Android 手机都支持 micro SD 卡)。现在启动 apk 并从那里安装它。

Another way is to load the apk onto an SD card, through a PC's USB port, then plug in that SD card into the handset (most android phones have micro SD card support). Now launch the apk and install it from there.

天暗了我发光 2024-09-25 10:49:09

当您的设备通过 USB 调试电缆连接到 PC 时,请转到 Eclipse。当您的应用程序项目打开时,从上方菜单中选择“运行”。然后从窗口中选择您的设备并运行。这应该足以将您的应用程序加载到您的设备上。现在,即使您断开 USB 电缆,该应用程序也应该在那里。

When your device is connected to your PC via the USB debug cable, go to Eclipse. While your application project is open, select Run from upper menu. Then select your device from the window and run. This should be enough to load your application to your device. Now, even when you disconnect the USB cable, the application should be there.

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