Even if there is a high enough data rate, I think transmission distance would be an issue. Most bluetooth devices are only designed for a range of about 10 meters, and less if there are walls and other objects to go through. It seems to me that establishing a sort of ad- hoc wifi network would work better (although I know Android doesn't really like ad-hoc networks).
On Apr 13, 9:06 am, Aditya Singal <adityasingal...@gmail.com> wrote: > Is it possible to get the code for an audio call using bluetooth > headset? That may be helpful. > That may help me to figure out how to send continuous streams of data. > > On Apr 6, 11:03 pm, Kristopher Micinski <krismicin...@gmail.com> > wrote: > > > > > > > > > You'll have to connect the phones right, and then send a stream of data... > > > I think you might want to look into how BT headsets work in this type of > > scenario, > > that's probably what you want to do instead. (I'm out of my element here, > > I'm not > > sure if that's possible with the API.) > > > Otherwise you have to look into connecting between the two phones. Look at > > the > > BluetoothChat example, which shows how to go about sending data, then you > > have > > a stream socket. By the way, I think that the data rate will be too low for > > audio using > > a socket like the one from the bt chat example. > > > Kris > > > On Wed, Apr 6, 2011 at 1:53 PM, Aditya Singal > > <adityasingal...@gmail.com>wrote: > > > > Hi, > > > > I am trying to implement a walkie talkie set between two android > > > mobile phones using bluetooth connection. But I am not sure how to > > > send audio data as a stream through bluetooth. So far I am trying to > > > use media recorder to capture audio. > > > > mRecorder = new MediaRecorder(); > > > mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); > > > > mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); > > > mRecorder.setOutputFile(mFileName); > > > mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); > > > > This is part of the code that I took from android.com. I believe that > > > this will simply save the sound file at path specified by "mFileName" > > > however I wish to transmit it through bluetooth instead of saving it. > > > > Aditya > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en