What external piece of hardware? There is a Bluetooth Chat example in the API samples. You have to pair them first, right?
I've heard of trouble with non phones (i.e., if you picked up a module on sparkfun), but this could be cool and I'd be interested to hear your mileage. The only thing I don't get is that you want to send a Bluetooth Message with ``the SMS'' This doesn't make sense, they are completely different types of communication? >From what I got you want to send a message to a BT module (non phone) when the phone receives a text. So the application would be something like a cheap piece of hardware that does something with received texts when you were near it? We need more information. Kris On Fri, Mar 18, 2011 at 7:23 PM, Alexandru <[email protected]> wrote: > Hey guys, > > I'm working on integrating my Android phone with this external piece > of hardware. I have all the direct communication between the two > completed. However I would like to add functionality for the phone to > send a Bluetooth Message with the SMS when an SMS is received. > > The way I'm implementing SMS receiving is by having a class > (SmsReceiver) that extends BroadcastReceiver, and having the following > in my Manifest: > > <receiver android:name=".SmsReceiver"> > <intent-filter> > <action > android:name="android.provider.Telephony.SMS_RECEIVED" /> > </intent-filter> > </receiver> > > My question is how exactly would I make it so that when I receive a > SMS (i'm guessing in the onReceive of my SmsReceiver) I would also > send the message to the external piece of hardware through Bluetooth. > Any ideas? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

