Live data from Hacker News

Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows

github.com

11–20 of 97 posts

Re: Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows

#12
post #6
post #4

Can anyone explain how this differs from using an Android emulator? ( http://developer.android.com/tools/help/emulator.html ) Is it a matter of features, speed, or convenience? Obviously, all of those can be overcome, be it as a fork of the official emulator or as a third-party emulator. For instance, this new Chrome extension must be the same thing under the hood: a Dalvik runtime, possibly an ARM->Intel recompiler…

It's been a few years since I dared run the official emulator, and I used to have an underpowered computer for development, but last time it took about 10 minutes to boot Android and another 2-3 minutes to open an app. I presume it's been improved since then and runs nicer on better hardware, but my first impulse is that speed is a huge concern in Android emulation. Convenience only matters if speed is solved, but th…

It's a lot better now with HAXM, and host gpu support.

Just timed starting up a fresh instance, unlocking it and starting Maps.

This is starting from when I clicked launch in AVD manager on a mid-range laptop from 2011

1:25 emulator showed up

1:53 until lock screen

1:61 until maps loaded

Re: Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows

#13

Neat proof of concept. I hope Google gets us something official sooner rather than later. It's a little disheartening that I own a Chromebook Pixel and yet I can't use Google's own hardware to design or test Android apps without installing Eclipse on a sideloaded Linux chroot via Crouton.

How is that disheartening? The whole point of the Chromebook is to only use the web.

The fact that Google is starting to roll out the ability for Android apps to run as Chrome apps suggests that they are aware of the limitations of being "web only". It also stands to reason that if they're going to soon allow Android apps to run under ChromeOS, you should be able to develop them too, no?

To boot, the Pixel's relatively decent hardware, high-res display, and touchscreen just seem like it would be ideal for testing Android apps if it could be done natively.

I doubt it will ever be as simple as I would like. But I can dream.

Re: Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows

#14
post #4

Can anyone explain how this differs from using an Android emulator? ( http://developer.android.com/tools/help/emulator.html ) Is it a matter of features, speed, or convenience? Obviously, all of those can be overcome, be it as a fork of the official emulator or as a third-party emulator. For instance, this new Chrome extension must be the same thing under the hood: a Dalvik runtime, possibly an ARM->Intel recompiler…

Last I checked the Android emulator was dog slow because it did CPU-level emulation of an ARM computer with qemu. You could get better performance (like iOS Simulator/OS X) by providing the runtime libraries with "native" implementations using the host's libraries.

Re: Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows

#15
post #6
post #4

Can anyone explain how this differs from using an Android emulator? ( http://developer.android.com/tools/help/emulator.html ) Is it a matter of features, speed, or convenience? Obviously, all of those can be overcome, be it as a fork of the official emulator or as a third-party emulator. For instance, this new Chrome extension must be the same thing under the hood: a Dalvik runtime, possibly an ARM->Intel recompiler…

It's been a few years since I dared run the official emulator, and I used to have an underpowered computer for development, but last time it took about 10 minutes to boot Android and another 2-3 minutes to open an app. I presume it's been improved since then and runs nicer on better hardware, but my first impulse is that speed is a huge concern in Android emulation. Convenience only matters if speed is solved, but th…

I'm running Eclipse and the emulator on a 4 year old Mac Pro. Initial startup time for the emulator is about 20 seconds, but after that first hit has been absorbed, it generally takes about 8-10 seconds whenever I run a new build of the app I'm developing. (This is with HAXM [0] enabled. Still far too slow, so pretty much everybody does their development on actual Android devices, but far from the times reported in this thread.)

[0] https://software.intel.com/en-us/android/articles/intel-hard...

Re: Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows

#16
post #6
post #4

Can anyone explain how this differs from using an Android emulator? ( http://developer.android.com/tools/help/emulator.html ) Is it a matter of features, speed, or convenience? Obviously, all of those can be overcome, be it as a fork of the official emulator or as a third-party emulator. For instance, this new Chrome extension must be the same thing under the hood: a Dalvik runtime, possibly an ARM->Intel recompiler…

It's been a few years since I dared run the official emulator, and I used to have an underpowered computer for development, but last time it took about 10 minutes to boot Android and another 2-3 minutes to open an app. I presume it's been improved since then and runs nicer on better hardware, but my first impulse is that speed is a huge concern in Android emulation. Convenience only matters if speed is solved, but th…

intel android on virtualbox runs good enough for testing on a fast machine.

Re: Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows

#17
post #5

Neat proof of concept. I hope Google gets us something official sooner rather than later. It's a little disheartening that I own a Chromebook Pixel and yet I can't use Google's own hardware to design or test Android apps without installing Eclipse on a sideloaded Linux chroot via Crouton.

If you're a developer you'll want a real Linux environment anyways so I would just go the crouton route. I've been really happy with my C720 and crouton running Ubuntu.

You can go the full-installation route as well on C720:

* Xubuntu https://www.distroshare.com/distros/get/14/

* Ubuntu https://www.distroshare.com/distros/get/12/

Re: Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows

#19
So, now we can write apps in Angular that run on the web and compile to Java so that we can install them to Android, running on ChromeOS, running on OSX.

Brilliant.

Edit: Perhaps the punny nature of this is deserving of downvotes, but the statement above is the actual use case I presented to a co-developer, discussing how this project could be of use to our app, which was built with Ionic.

FWIW, there's value in it (the app, not necessarily this post) even if it means having to unplug fewer devices to swap them out with different devices to test.

Re: Chromeos-apk – Run Android APKs on Chrome OS, OS X, Linux and Windows

#20

Earlier quoted context omitted.

How is that disheartening? The whole point of the Chromebook is to only use the web.

The fact that Google is starting to roll out the ability for Android apps to run as Chrome apps suggests that they are aware of the limitations of being "web only". It also stands to reason that if they're going to soon allow Android apps to run under ChromeOS, you should be able to develop them too, no? To boot, the Pixel's relatively decent hardware, high-res display, and touchscreen just seem like it would be idea…

>It also stands to reason that if they're going to soon allow Android apps to run under ChromeOS, you should be able to develop them too, no?

Why? Can you develop Android apps on your phone?

Post reply on HN