Application Framework Archive

How Android Bluetooth Profiles are enabled & Services activated ?

How Android Bluetooth profiles are enabled ? Ans: Check packages/apps/Bluetooth/res/values/config.xml <resources> 16 <bool name="profile_supported_a2dp">true</bool> 30</resources> If you want to disable the above profile, change from "true" to "false" Check related lxr The above flags are used during initialisation as below, in file, packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ Resource ...Read More

Java and JNI example

JAVA and JNI pre-requisite – Install Java SE Development Kit 6u14 under /usr/jdk1.6.0_14 1) Write a JAVA class [ ] public class HelloWorld  { static { System.loadLibrary(“hello”); } public native void printHelloWorld(); }   2) Compile the class using javac sudo javac ...Read More