If we can use D-Bus using AF_LOCAL/UNIX domain sockets available in
SDK http://developer.android.com/reference/android/net/LocalSocket.html
can it connect to BlueZ on Android ?
Another question is can we make JNI library on Android. We still need
to access AF_BLUETOOTH sockets.
--
Vlad
http://groups.google.com/group/android-porting/msg/24d7a32157dcd28d
It doesn't sound that positive because of this comment: " which is all
really what bluetooth device can do on Android. :( "
Update 2:
I just received a "Android Dev Phone 1"
Will keep you posted on updates.
ls -l /dev/socket/dbus
srw-rw---- bluetooth bluetooth 2009-03-31 19:27 dbus
So when I made application that connect to D-Bus on Android I got:
org.freedesktop.dbus.exceptions.DBusException: Failed to connect to
bus Permission denied
On 1.0 adb shell gives you root access
So I did
chmod 777 /dev/socket/dbus
BTW This need to be done after every reboot of the phone .
Then I got another error
java.lang.IllegalArgumentException: U_ILLEGAL_ARGUMENT_ERROR
at com.ibm.icu4jni.text.RuleBasedCollator.setDecomposition(RuleBasedCollator.java:400)
at java.text.Collator.setDecomposition(Collator.java:284)
at org.freedesktop.dbus.Transport$SASL.<clinit>(Transport.java:108)
Presumably this can be fixed......
this is as far as i gone today.
Conclusion the current state of Android would not allow us to make
User Bluetooth application.
We can still make is as prove of concept.