2016年12月16日 星期五
2016年12月12日 星期一
Android 藍芽 Bluetooth Headset
1.Voice Input
http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset
http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/1007/3548.html
http://www.cnblogs.com/wsfjlagr/p/3896087.html
http://stackoverflow.com/questions/8583406/saving-audio-input-of-android-stock-speech-recognition-engine
http://stackoverflow.com/questions/28450355/how-to-record-audio-from-bluetooth-headset-startbluetoothsco
https://developer.android.com/guide/topics/media/audio-capture.html
Sony tutorial:
https://developer.sony.com/develop/wearables/smarteyeglass-sdk/guides/use-bluetooth-for-audio-io/
http://blog.csdn.net/charein/article/details/12184835
2.藍芽 volume up & down event catching:
SettingsContentObserver mSettingsContentObserver = new SettingsContentObserver( new Handler() );
this.getApplicationContext().getContentResolver().registerContentObserver(
android.provider.Settings.System.CONTENT_URI, true,
mSettingsContentObserver );
class SettingsContentObserver extends ContentObserver {
public SettingsContentObserver(Handler handler) {
super(handler);
}
@Override
public boolean deliverSelfNotifications() {
return super.deliverSelfNotifications();
}
@Override
public void onChange(boolean selfChange) {
super.onChange(selfChange);
///do it
}
}
http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset
http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/1007/3548.html
http://www.cnblogs.com/wsfjlagr/p/3896087.html
http://stackoverflow.com/questions/8583406/saving-audio-input-of-android-stock-speech-recognition-engine
http://stackoverflow.com/questions/28450355/how-to-record-audio-from-bluetooth-headset-startbluetoothsco
https://developer.android.com/guide/topics/media/audio-capture.html
Sony tutorial:
https://developer.sony.com/develop/wearables/smarteyeglass-sdk/guides/use-bluetooth-for-audio-io/
http://blog.csdn.net/charein/article/details/12184835
2.藍芽 volume up & down event catching:
SettingsContentObserver mSettingsContentObserver = new SettingsContentObserver( new Handler() );
this.getApplicationContext().getContentResolver().registerContentObserver(
android.provider.Settings.System.CONTENT_URI, true,
mSettingsContentObserver );
class SettingsContentObserver extends ContentObserver {
public SettingsContentObserver(Handler handler) {
super(handler);
}
@Override
public boolean deliverSelfNotifications() {
return super.deliverSelfNotifications();
}
@Override
public void onChange(boolean selfChange) {
super.onChange(selfChange);
///do it
}
}
訂閱:
文章 (Atom)