Talking from Android Adobe AIR application to local computer through USB - android

In Flash Builder, there is USB Debugging feature for mobile applications built with Adobe AIR. It lets application installed on Android devise to transmit errors and trace statements to Flash Builder.
I need to develop the same feature for my application: Android application built with Adobe AIR talks to application on my local PC.
Does anybody know what technology it could be achieved with? Do they use serial port communication, or local server? Does anybody have a piece of code that does a similar thing?
Note: I'm not interested in network debugging, just USB Debugging.

I just googled and found this video:
[http://www.hsharma.com/tutorials/flash-builder-4-7-usb-debugging-on-ios/][1]

Related

What is the best way to debug an android application on a tablet WHILE having an external USB device connected to said tablet?

I am developing an application for the latest version of Android using Xamarin and Visual Studio 2015 community. I haven an ACS122-U NFC reader connected to the tablet using USB On-The-Go. I'm able to interface with the reader, but due to the lower level nature of its libraries I'm having to slowly work my way through sending the correct commands. I'd like to have real-time debugging instead of message boxes with exception errors and response values.
Does anyone know of a way to do this? I've tried connecting a powered USB dock to the tablet, reader, and PC but I'm sure that has no way of directing the information to the correct devices.

Getting Tablet.input via USB-cable connection

I am trying to develop a remote-kind App in Unity for a Android tablet. I have a finished Desktop application which I want to control.
Right know I have a normal network client/Server connection between the two apps, but I dont want to rely on a available Wificonnection.
Now I want to replace this connection, with a direct Cableconnection. If the tablet is connected via USB with the Desktoppc, the PC should know if the remoteapp is running and should get commands from the tabletappication.
Is there any way, to access those data coming from the USB-cable in Unity?
Thanks for helping
This is possible and at the-same time complicated. You need a way to communicate with the Android and the driver on the computer and this is usually done with C++ on the Desktop Side.
Android:
You need UsbManager and UsbAccessory on the Android side to commucate with the Desktop.
On the desktop, you need WinUSB to be able to communcate with the Android device.
The correct way to do this is to build a simple C++ WinUSB app on the Desktop side then build another simple Java/Android App with UsbManager and UsbAccessory, then make them communcate with each other,
Once it starts working, then you can convert the Java code into jar/aar plugin and then convert the Windows C++ app into functions and into plugin/dll.
iOS:
If you decide later on to port this to iOS, you can use libimobiledevice with C++ on the desktop and External Accessory framework on the iOS side. You may need to join the Apple MFi program to be allowed to use the USB port on the iOS devices.

Connecting Kinect to Android

So I'm trying to hook up a Kinect to an Android tablet using any means necessary. I would preferably like to avoid a windows machine or arduino board in the middle.
The method I've already tried is to have a C# program (the kinect sdk uses C#) communicate with the android device. I tried to figure out how to send a message through usb, and decided to do port forwarding. This worked, but was slower than I would like it to be.
I guess the question is can I connect it to Android as a usb device or accessory and communicate via JNI?
In theory you should be able to use the OpenNI for ARM. I've seen Hirotaka's demo of OpenNI running on Linaro Android but using an Asus Xtion Pro sensor and a Panda board.
Hirotaka also posted notes on his setup.
Doing a quick youtube search reveals examples with Kinect and Android tablets.
Side note: I don't I understand why you're trying to use C#: you'll be writing Android applications in Java and OpenNI has a Java wrapper.

is there a way to discover local network devices in a Adobe Flex Mobile app

I am trying to write an app for iOS and Android platforms, that discovers local network devices like printers, tv, computers etc.
I would love to use bonjour, but apparently Bonjour can't be used on Android devices (?) when writing an app in adobe flex framework.
Are you seeing a technical reason why you can't use Bonjour on Android? Some security block?
If not, you may be able to work directly from AIR--Renaun Erickson has a blog post that attempts to do the same (which I haven't tried).

Test Flash on Android device via USB

I am currently learning Actionscript 3.0, mainly to start developing mobile games for Android.
Device central is really useful to emulate the Flash content running on devices, but I thought there was a way to test directly on the device itself via USB. Am I mistaken here, because I cannot for the life of me find any information on doing this.
I found several guides on how to get the USB connection up, but the actual testing/debugging itself seems to be done exclusively in Flash Builder.
I am using Flash CS5, and I want to test my AS3 projects directly on my Nexus S via USB.
The only guides I can find detail the publishing of Flash projects to Android, which is a fairly lengthy process. Surely there has to be a quicker way to preview content directly on your phone without having to go through the entire process of creating an APK for it?
This should help you out...
Getting Started with Adobe AIR for Android

Categories

Resources