Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I would like to know if it is possible to use DBUS on Android using Java. From what I have been searching till now it appears like there is no DBUS programming support on Android. But then bluetooth on Android uses DBUS. I would like to confirm if it is actually the case. If so, is there a possibility that DBUS would be supported in the future.

share|improve this question
2  
Have a look at stackoverflow.com/questions/1591164/… - short answer: you shouldn't do that. –  Ulrich Dangel May 16 '12 at 2:18
    
@mru I did not get the reason. Could you explain it? If necessary we can change the Android OS before using. –  salsabear May 16 '12 at 3:00
    
The problem is it isn't guaranteed that dbus is available. If you control the platform you can ensure dbus is present. This will allow you to use the normal java dbus library –  Ulrich Dangel May 16 '12 at 3:11
2  
1  
@vski We have decided to use dbus anyway. But not by using java but using JNI to call dbus from native code. A new problem is, why are dbus headers not available in android-ndk? but dbus headers are in android source code. –  salsabear Jun 7 '12 at 8:31

1 Answer 1

As dbus is written in C, and Android supports (mostly) the Dalvik subset of Java its not surprising that dbus is not supported.

You can write C code for Android but unless you are a phone company (i.e. able to install OS level updates) there is no practical way to distribute your software.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.