I built a custom Android ROM that supports A2DP Sink and AVRCP bluetooth profiles which are disabled by default.
Now i want to build an app that exploits these profiles, i found that the required files (BluetoothA2DPSink.java and BluetoothAVRCPCpntroller.java) are already present in android SDK folder ( from 21 and up).
The problem is "import android.bluetooth.BluetoothA2dpSink;" doesn't work, Android studio is unable to see these files.
I guess as these Bluetooth profiles aren't enabled in standard Android builds the files are there but arent included.
What do I do to include them in the SDK ?
Asked
Active
Viewed 344 times
1
Kristiyan Varbanov
- 2,439
- 2
- 17
- 37
Dhia Mili
- 43
- 5
-
Try updating your SDK – Jagjit Singh Mar 24 '16 at 12:21
2 Answers
1
The files I need aren't included in the android.jar I have to build an SDK that includes them.
Dhia Mili
- 43
- 5
0
You can get access to modified android.jar that will allow you to use hidden apis: https://github.com/anggrayudi/android-hidden-api
Dima
- 1