开发者

Running Android apps in Linux

I have a Red Hat Linux (RHL) system on which I'开发者_Go百科d like to run Android apps. How would I do this? Is there an open-source port of the Android Runtime for linux? Kind of like a VM? If not, what steps will I need to follow to port the runtime to RHL (with the Dalvik VM etc) so that I can run the android apps built by all android developers? I am new to android so I am trying to understand if there is an application virtualization support for it from anyone. Thanks in advance!


You need to use dex2jar to convert an APK file to a JAR and then you need IcedRobot to run the Android stack above OpenJDK. Maybe I will try to emulate AndroidGL with JOGL 2.0 (it supports both OpenGL and OpenGL-ES). Keep in mind that it is not trivial.

The emulator of Android SDK is quite slow but you just have to enter adb install my_file.apk to install your application.

You can run android-x86 in VirtualBox or Live Android from a Live CD as Dimitri suggested but I'm not sure it is what you want.

P.S: The most promising solution seemed to be AndroVM.

P.S 2: ARChon Runtime works very well on 64-bits systems. This tutorial is very helpful to make it work.

P.S 3: App Runtime for Chrome Welder is even more promising, it's currently in beta. The final version will support all Android APIs in Google Chrome under GNU Linux (including Chrome OS), Mac OS X and Windows.


I know there is a project for porting Android on x86 platform. You can find iso to download and you can install on LiveCD : http://code.google.com/p/live-android/. You can find more information here


You can't just run Android apps - you will need the entire underlying Android operating system. That goes beyond a simple JVM. EDIT: There is actually a project in the works that aims to do that, see Dimitri's link.

But you're in luck - the Android SDK comes with an emulator that should fulfill your needs (although it's a bit on the slow side - if you're developing Android apps, you definitely want to use a physical device instead). The SDK is available here.


Run Bluestacks on Windows on VMWare on Linux. Easy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜