Cristina, First off, thanks for the code, I have been looking everywhere for this and was annoyed to only find references to code from the outdated SDK's. Just a couple of questions for you. I'm trying to implement your code above and was wondering what permissions need to be added to the manifest file. Also, I'm still fairly new to this, is there a way to send binary SMS's to the emulator through either DDMS or a command line? My app will intercept and handle small binary files sent via SMS from non android devices. I have the binary files, and would prefer not to write another android app and set up a new emulator just to be able to send the files via SMS.
Thanks in advance for any help. Chris On Dec 4, 9:30 am, Cristina <[EMAIL PROTECTED]> wrote: > Hi Joe, > > Firt of all, thanks for the code. > However I have tested your code with the emulator and does not work > for me. So there must be something I am doing wrong. Have you checked > that with the emulator or with the G1? I am doing my tests in the > emulator because I still don't hava a phone yet. > Can you provide the code you use to send de binarySMSand to receive > it in the broadcastreceiver? > > Thanks > Cristina > > On Dec 4, 11:22 am, "joe.scheidegger" <[EMAIL PROTECTED]> > wrote: > > > > > Hi all > > > i have found the way how you can receive a binarysmsaddressed to an > > application port! > > You must create a BroadcastReceiver and then you must put the > > following in the manifest file: > > > <receiverandroid:name=".YourBroadcastReceiver"> > > <intent-filter> > > <action > >android:name="android.intent.action.DATA_SMS_RECEIVED" /> > > <data android:scheme="sms"/> > > <dataandroid:host="localhost"/> > > <dataandroid:port="your port"/> > > </intent-filter> > > </receiver> > > > and then you must add the following permission: > > <uses-permissionandroid:name="android.permission.RECEIVE_SMS"></uses- > > permission> > > > have fun! > > cheers > > joe- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

