installing genymotion on a mac

Bill Gorder has suggested numerous times to use Genymotion instead of the emulator in the Android Development Tools because it is faster.  This week, I downloaded it.  I had to turn off the hardware acceleration in the ADT emulator SDK one as it caused instability on my Mac.  It’s time to try something new.

Downloading appears simple and is described here.  I already had a recent version of VirtualBox installed (I use it to run Linux, Windows 8 and Chromium.)  I created a device and then tried to launch it.  Which gave me the error “Unable to load VirtualBox engine.” It directs me to the FAQ which didn’t help.

Luckily, the answer was only a search away.  I ran

sudo /Library/StartupItems/VirtualBox/VirtualBox restart 

and all was well.  I didn’t even need to restart Genymotion.  The problem is I need to run this command every time I reboot (or add it to my startup)

I then installed the Eclipse plugin into my ADT install.  After setting the workspace preferences Genymotion item to /Applications/Genymotion.app.  (For more on the plugin, see the docs).  I was a little surprised that to run the plugin, you need two steps:

  1. Launch the genymotion device using the icon in the toolbar.  (this isn’t a big deal; I was just surprised since the ADT emulator did it automatically)
  2. Run as/debug as Android application.  If you have run configuration already, make sure it is set to “Launch on all compatible devices/AVDs” with the drop down set to “active devices and AVDs”.  This is how Eclipse knows to connect to the Genymotion emulator and not the other ones.

The interface is snappy which is nice.  I also like that it works with adb so I can push apps.

making it too easy to do something (a toshiba laptop) + windows 8 annoyances

I helped a non-technical friend set up her new Windows 8 laptop.  I encountered a bunch of expected problems as Windows 8 “changes everything.”  I wound up showing her some keyboard shortcuts as they were easier than fighting with Windows 8:

  1. Alt + tab: to switch amongst applications
  2. Windows M: to show desktop
  3. Windows C: to get sidebar (this one she actually showed me as the first step in the restarting sequence)

I also did some setup to make Windows 8 less – um – prevalent.  The biggest one was to boot to the desktop instead of the start mess and put the few commonly used programs on the desktop.  I used windows-r a lot to type “cmd” and get to the command line.

I was expecting Windows 8 to be annoying though so this didn’t surprise me.  What did surprise me was the touchpad.  I’m not sure if this is Microsoft’s fault or Toshiba’s.  The laptop trackpad was disabled by default.  I turned it on in the Windows settings.  Then I learned that if you hit F5, it disables it. (Which I did by accident when trying to do alt + f4).  It seems like it shouldn’t be so easy to disable the trackpad.  A confirmation would be nice.

launching windows 8 on a vm

My “Windows computer” is a Windows XP machine that is over 7 years old and barely works. I still have it because every once in a while I’ve used it to test something in Internet Explorer. It doesn’t have the latest patches, virus scan, software etc. And it is really slow. My work computer has Windows, but that is meant for work. I’m about to start on something where at home it would be convenient to have easy access to Windows. I already have a href=”/tag/virtualbox/”>VirtualBox on my Mac for Ubuntu and Chrome OS.

I decided to go with Windows 8 because it is the future.  No time like the present to start getting used to that OS.  My theory is that it will less aggravating using it for little things rather than waiting for it to become my primary computer one day.

Plus you can test out Windows 8.1 Enterprise for free for up to 90 days.  PCWorld has a great article about it.  The install was between 30 and 60 minutes.

Once the VM was installed, it was fairly simple to get started:

  1. Download JDK from Oracle and install
  2. Click down arrow in bottom right corner to get list of apps
  3. Type “Command” to get the DOS prompt.
  4. Right click “Command Prompt” to pin to start menu so can get to it right away next time.
  5. Update path from control panel

Overall, my first impressions are that Windows 8 is very colorful.  And that if I didn’t know what to search for, I wouldn’t have found what I needed.

Second impressions

They moved everything.  I’m able to do what I need, but it feels like someone moved around all my furniture, hid some things and said “well, you just have to ask for them.”  I am so glad that I don’t have to do work on this thing at the moment.  And it feels like it takes a lot of clicks to do anything.

Communicating with the VM

You can copy/paste from VirtualBox.  I decided to use github instead though as I already have the code I want to try on Windows in a private github repository.  Github has a Windows client.  I’ve never used it so decided to download to see what it is like.  It is only 41.2MB, but downloaded really slowly.   The app provided a UI to clone a repository in github which it automatically checks out into Documents/github/repo-name.  The UI is nice, but I wound up using the git bash shell provided with the application.  Which meant it really only saved me some setup.

Other options would have been Dropbox or just use the copy/paste functionality from VirtualBox.  (I really didn’t want to do that for whole files.)