sample-bluetooth-audio
sample-bluetooth-audio copied to clipboard
Bluetooth A2DP sample using Android Things
I have some old phones with android. I want use it as bluetooth sink. Can i use sample-bluetooth-audio with old phones to listen music via bluetooth?
Hi, It has a problem with the example and not runing: ``` FATAL EXCEPTION: main Process: com.example.androidthings.bluetooth.audio, PID: 2555 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.androidthings.bluetooth.audio/com.example.androidthings.bluetooth.audio.A2dpSinkActivity}: java.lang.SecurityException: Need BLUETOOTH permission: Neither...
I don't have any issues with this project. It is working completely fine for me. I have some query in this. I want to show all metadata from AVRCP to...
Hi, audio playback seem not works on rpi3 developer 0.7.
DISCOVERABLE_TIMEOUT_MS renamed to DISCOVERABLE_TIMEOUT_S because this value is required in seconds. Comments corrected. Link: https://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#EXTRA_DISCOVERABLE_DURATION
I used this demo. But when androidthings plays audio, it's very unclear. I don't know why.
hi ,thanks for the demo ,recently I'm research a feature about how can use a a2dp sink on Android. so I download the androidthings and this demo project . But...
I tested the sample on my Android Things with an Android device paired and then played some audio which resulted playback in lag.
Hello, I got this error when application launch. Caused by: java.lang.RuntimeException: Stub! at com.google.android.things.bluetooth.BluetoothProfileManager.(BluetoothProfileManager.java:20) at com.example.androidthings.bluetooth.audio.A2dpSinkActivity.setupBTProfiles(A2dpSinkActivity.java:224) at com.example.androidthings.bluetooth.audio.A2dpSinkActivity.initA2DPSink(A2dpSinkActivity.java:246) at com.example.androidthings.bluetooth.audio.A2dpSinkActivity.onCreate(A2dpSinkActivity.java:170) at android.app.Activity.performCreate(Activity.java:6672) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1140) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2612) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724) at android.app.ActivityThread.-wrap12(ActivityThread.java) ...
A minor nitpick: `DISCOVERABLE_TIMEOUT_MS` suggests that the time unit is milliseconds. The actual value and its usage is for time measured in seconds, though.