Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 isn't any DBUS programming support on Android. However, 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
Have a look at… - 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
@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

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


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.