是否可以在 iPad/iPhone 设备上运行 .APK/Android 应用程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11335874/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 07:02:15  来源:igfitidea点击:

Is it possible to run .APK/Android apps on iPad/iPhone devices?

androidiphoneapk

提问by ninge

All- I recently published an android app on Google Play. I also made it available on my website as an .apk file. I hate to ask this as I am not a big fan of Apple but could an Apple user download my app from my website. Just wondering as a lot of my friends are Apple users. Thanks for your time!

全部 - 我最近在 Google Play 上发布了一个 android 应用程序。我还在我的网站上以 .apk 文件的形式提供了它。我不想问这个,因为我不是 Apple 的忠实粉丝,但 Apple 用户可以从我的网站下载我的应用程序。只是想知道我的很多朋友都是苹果用户。谢谢你的时间!

回答by

It is notnatively possible to run Android application under iOS (which powers iPhone, iPad, iPod, etc.)

在 iOS(支持 iPhone、iPad、iPod 等)下运行 Android 应用程序本身是不可能的

This is because both runtime stacks use entirely differentapproaches. Android runs Dalvik (a "variant of Java") bytecode packaged in APK files while iOS runs Compiled (from Obj-C) code from IPA files. Excepting time/effort/money and litigations (!), there is nothing inherently preventing an Android implementation on Apple hardware, however.

这是因为两个运行时堆栈使用完全不同的方法。Android 运行打包在 APK 文件中的 Dalvik(Java 的“变体”)字节码,而 iOS 运行来自 IPA 文件的编译(来自 Obj-C)代码。然而,除了时间/努力/金钱和诉讼(!),没有什么本质上会阻止在 Apple 硬件上实现 Android。

It looks to package a small Dalvik VM with each application and targeted towards developers.

它希望为每个应用程序打包一个小型 Dalvik VM,并面向开发人员。

See iPhoDroid:

iPhoDroid

Looks to be a dual-boot solution for 2G/3G jailbroken devices. Very little information available, but there are some YouTube videos.

看起来是2G/3G越狱设备的双启动解决方案。可用信息很少,但有一些 YouTube 视频。

See iAndroid:

请参阅iAndroid

iAndroid is a new iOS application for jailbroken devicesthat simulates the Android operating system experience on the iPhone or iPod touch. While it's still very far from completion, the project is taking shape.

iAndroid 是一款适用于越狱设备的全新 iOS 应用程序可模拟 iPhone 或 iPod touch 上的 Android 操作系统体验。虽然距离完成还很远,但该项目已初具规模。

I am not sure the approach(es) it uses to enable this: it could be emulationor just a simulation(e.g. "looks like"). The requirement of being jailbrokenmakes it sound like emulationmight be used ..

我不确定它使用的方法来实现这一点:它可以是模拟或只是模拟(例如“看起来像”)。越狱的要求听起来像是可以使用仿真..

See BlueStacks, per the Holo Dev's comment:

根据 Holo Dev 的评论,请参阅BlueStacks

It looks to be an "Android App Player" for OS X (and Windows). However, afaik, it does not [currently] target iOS devices ..

它看起来是 OS X(和 Windows)的“Android App Player”。但是,afaik,它 [目前] 不针对 iOS 设备..

YMMV

青年会

回答by shabbirv

Apple users can download your .apk file, however they cannot run it. It is a different file format than iPhone apps (.ipa)

Apple 用户可以下载您的 .apk 文件,但他们无法运行它。它是一种与 iPhone 应用程序 (.ipa) 不同的文件格式

回答by user1969272

There is another option not mentioned previously:

还有一个前面没有提到的选项:

  • Pieceable Viewerhas unfortunately stopped its service at December 31, 2012 but open-sourced its software. You need to compile your iOS application for the emulator and Pieceable's software will embed it in a webpage which hosts the application. This webpage can be used to run the iOS application. See Pieceable's for more details.
  • 不幸的是,Pieceable Viewer于 2012 年 12 月 31 日停止了其服务,但开源了其软件。您需要为模拟器编译 iOS 应用程序,Pieceable 的软件会将其嵌入到托管应用程序的网页中。此网页可用于运行 iOS 应用程序。有关更多详细信息,请参阅 Pieceable。

回答by simplegamer

The app can't be run natively, but it could be run on an emulator. You can use ManyMo to embed them in a website and make users add your app to their home screen. This linkshould be useful for making the app more realistic. Users could then only press the share button and add the app to their home screen. All data will be deleted when the "app" is closed in their iOS devices so you should use the Internet/cloud for storage. It can't access camera or multi touch, but it may be useful.

该应用程序无法在本地运行,但可以在模拟器上运行。您可以使用 ManyMo 将它们嵌入网站并让用户将您的应用添加到他们的主屏幕。此链接应该有助于使应用程序更逼真。然后用户只能按下共享按钮并将应用程序添加到他们的主屏幕。当“应用程序”在他们的 iOS 设备中关闭时,所有数据都将被删除,因此您应该使用互联网/云进行存储。它无法访问相机或多点触控,但它可能很有用。