I would like to know how to detect a USB device which is connected to an Android device (as a host). In normal Linux I just use libudev to do that. What's the equivalent in Android?
Any documentation about it?
Thank you
It was past long time but I would like to add some finding with the hope to help others.
There is an Android native solution using Android's libusbhost library to access a USB device from native C++ (by #sonicdebris from github.com). Here is the link. It is a PoC and not complete but it will give some idea about the problem.
There is also a recipe about the question in the official Android documentation but it is Java. Here is the link.
Related
I'm building an Android application to allow communication between two devices in a limited range but I can't find an equivalent plugin to the native Android Wi-Fi peer-to-peer for Phonegap/Cordova.
Any suggestion ? May another service (such as the Google's WebRTC) do the trick ? Is going native the solution ?
I am having the same problem but there is a plugin called "thali" which I haven't tested it yet but here is the link anyway if you want to give it ago.
let us know how you getting on
https://www.npmjs.com/package/thali
How to connect two android devices for android using wifi direct in unity.
Follow this tutorial to learn how to create a Wi-Fi direct application.
To help you understand some fundamental Android APIs and coding practices, a variety of sample code is available from the Android SDK Manager.There is code for wifi-direct file transfer (WiFiDirectDemo).
you can find the source code for all samples at this location:
sdk/samples/android-version/
I suggest you to look at this answer : https://stackoverflow.com/a/39690512/12130325
This is a plugin which cost 20-30$
If you want to make it with a free plugin you can try this one :https://github.com/saltyJeff/UnityWifiDirect
It works pretty well too. And it has only Wi-Fi Direct in it. No other things like TCP / mySQL server, etc...
I knows that the AR.Drone is controllable for Android phone.
However I can't found any open java source code for me to develop!!
All I have found is the code with the type .h which I knows only for
C++ (iPhone user)!
Can any body give me some idea to develop AR.Drone with java code on eclipse?
thx
:)
there is javadrone ( http://code.google.com/p/javadrone/ )
Note: this lib has issues with the AR.Drone 2.0 - fixed ( for at least flying ) here: https://github.com/xperimental/moder.AR.drone/blob/master/library_projects/javadrone-api/src/com/codeminders/ardrone/ARDrone.java
The AR Drone application programing interface API can be found here:
https://projects.ardrone.org/
The API is in c++, if you intend to develop for iphone you will have to write an application from the ground up because the application that exists on the iphon currently is commercial. (Closed source).
As is the android one because they are developed by parrot.
I developed for the ar drone using the computer which was much easier, depending on what you are trying to do i would develop on the computer. If you need more help i would suggest asking here:
http://www.ardrone-flyers.com/
Good luck
We used yaDrone for an autonomous drone project - the library was very reliable.
Furthermore there is an eclipse tutorial for yaDrone.
If you need to build an IOS app you can use openFramework and ofxARDRone from Memo Akten to control and get the video. This framework is written in C++. You can use this framework in XCode and build for IOS, too.
I'm going to build an application that allows an Android to connect to other phone's DUN (dial-up) bluetooth service, to use this other phone as an internet modem.
It seems like dund is included into Android (i'm targetting at 2.1 -- not sure if it is actually included there?), so I wonder if it supports "dund --connect" command not just --listen?
Or, maybe, there're other ways to implement that? Existing software maybe?
Thanks a lot in advance!
you can visit this
http://www.bluesoleil.com/products/SoftwareDetail.aspx?ProductID=S0001201009150001
Can someone explain to me the concept behind using bluetooth?
My project in my studies is to make an android app using bluetooth, SQLLIGHT and google app
the app itself is a very easy one but I just dont get the tools I need to use :
How does the bluetooth works? Is there a simple example?
the concept behind android GUI (I already made one but I think I am not fully understood his power)?
note : I am using v 2.1
For learning bluetooth on android I guess you should dig into: http://developer.android.com/guide/topics/wireless/bluetooth.html
Should be simple.
Before you learn to program Bluetooth with API on a given platform, you need to read up a few basics first to understand the technology first. There are plenty of resource materials on internet for learning. If you prefer a book, you can try http://www.amazon.com/Bluetooth-Operation-Use-Robert-Morrow/dp/007138779X