iLanguage / Aublog

Automatically exported from code.google.com/p/aublog
1 stars 1 forks source link

Use bluetooth for recording dications #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I want to record my dictations and listen to the audio via a paired bluetooth 
headset. This is more comfortable while biking on the bike path. 

What version of the AuBlog are you using? On what Android version (2.2,
3.0), and which device (HTC Desire, Motorola Xoom)?
AuBlog v1.0
HTC Desire

Original issue reported on code.google.com by a...@ilanguage.ca on 10 Sep 2011 at 2:41

GoogleCodeExporter commented 9 years ago
This feature was implemented on Aug 15 2011.

This is a very tricky feature due to an issue 9503 in the actual Android source 
code.
http://code.google.com/p/android/issues/detail?id=9503

Essentially disconnecting a paired bluetooth device prior to android 2.2 will 
result in the system to reboot.

Workaround:
Adopted work around in 
http://code.google.com/p/android/issues/detail?id=9503#c2 wherby the MainMenu 
of Aublog checks to see if it is the last AuBlog process running and kills the 
process on the second time the user pushes the back button (to exit aublog). 
This is only necessary if the device is <2.2
Android 2.2 users must exit aublog before turning off their bluetooth head set.

Implementation:
*added settings that the user can turn on and off to route audio through the 
bluetooth
*added settings to the menu of each AuBlog activity so that user can visit 
settings at any time
*added kill logic if the device is running 2.2 in the MainMenu activity as well 
as the Transcription service (the two exit points of AuBlog)
*added recheck-audio settings in the EditBlogEntry activity
*added recheck-audio settings in the RecordDictation service

attached commit logs with more details of the history.

Original comment by gina.c.c...@gmail.com on 10 Sep 2011 at 4:06

Attachments: