Sunday, May 15, 2011

ADK compiled for android 3.1

I got the ADK compiled for android 3.1. The way it is written is targeted at 3.0 with an additional library. The general instructions and ADK can be found here http://developer.android.com/guide/topics/usb/adk.html

First, remove line 10 () from the androidManifest.xml file. Now we must change DemoKitActivity.java.

The imports for USB must be changed from com.android.future.usb.... to android.hardware.usb....

In line 128 and 139 change:
UsbAccessory accessory = UsbManager.getAccessory(intent);
to:
UsbAccessory accessory =(UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);


Line 152 must go from:
mUsbManager = UsbManager.getInstance(this);
to:
mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE);

Now I just have to wait for my USB host board to come in so that I can play with some stuff....

Saturday, May 14, 2011

lots of stuff

Well, been a long time since I updated. Well, have some new tech toys, particularly a tegra 2 powered tablet. Which just got an os update today, which should include host mode USB. That will be great. I also ordered a usb host shield for the arduino. I am really looking forward to playing with some physical devices hooked up to the android device. I now just have to learn to program for android......

Also have all of the functional construction done on my Mountain Models EVA. Hopefully if the weather is nice next weekend I will get a chance to hit the field. We shall see.

Also am moving to a new place with tons more room on June 1st. I am really hoping to have some dedicated workbench/lab space setup for doing embedded systems type stuff with arduino and android devices. We will see how it all works out, but there should def. be more room for working on projects which ia always a huge plus.