Android Open Accessory Development Kit

gobblegob

Member
Licensed User
Longtime User
That would be worth donating for =)

Cheers Wazza.
 

agraham

Expert
Licensed User
Longtime User
Especially if he added the ability to simulate hardware key presses!
I'm afraid that thread is way out of date. Three years ago Google removed the function windowManager.injectKeyEvent() previously available on earlier versions of SDK to simulate a keystroke. This was done as a security precaution to prevent applications fiddling with other applications.
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
Damn.

Well there has to be a way to do it, there are apps on the marketplace that connect to wii/PS3 controllers and act as a keyboard for them
 

pjsmith

Member
Licensed User
Longtime User
+1 for me too.

Been fiddling with b4a for a while, but just spotted the new 'Arduino Mega ADK for Android'. As an arduino fiddler, being eable to use the open accessory development kit from b4a would be most amazing.
 

Frank R. Nichols

Member
Licensed User
Longtime User
FTDI has a hardware bridge that plugs into the USB port. They provide an APK for it, but I want (need) to use b4a to 'read' GPIO pins (as in reading a 'joystick' to control action in the application) they also provide the Java source code.
I've purchased their UMFT311EV evaluation board, which will act as USB 2.0 HOST to the 'droid phone during the connection.

Does b4a library support this mode yet?
http://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_UMFT311GP.pdf

BTW - I've donated (significantly) so far to NJDude and am still in a donating mood for useful answers.

a snippet of FTDI's source code: (the AndroidManifest.xml)
B4X:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.GPIODemo"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-sdk android:minSdkVersion="12" />

      <uses-feature android:name="android.hardware.usb.accessory"/>
     
    <application android:icon="@drawable/icon" android:label="@string/app_name"    >
        <activity android:name=".GPIODemoActivity"
                  android:label="@string/app_name"
                  android:screenOrientation="landscape">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter> 
                           
          <intent-filter>
              <action android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED"/>
            </intent-filter>
           
            <meta-data
                android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED"
                android:resource="@xml/accessory_filter">
            </meta-data>

        </activity>

    </application>
</manifest>
 
Last edited:

IanMc

Well-Known Member
Licensed User
Longtime User
for you Arduino heads look at the link in my sig for what I did :)

The Arduino is so cool!

ArduinoUno_R3_thumb.jpg
 
Top