Hi, The permissions you need to receive and send SMS are <uses-permission android:name="android.permission.RECEIVE_SMS" /> <uses-permission android:name="android.permission.SEND_SMS" />
About binarys SMS, AFAIK is not possible to emulate binanies SMS from DDMS. Maybe there is an option via telnet (doing a telnet to the emulator port, it opens an emulator console..look there if there is an appropiate command for binaries sms)..but I have not checked it (I did that by means of another phone emulator) About receiving binary SMS, I was trying to send them using a port..but in the emulator I was not able to receive them by port...But I think it is just an emulator problem, because Joe says this works on the G1. Cheers On Dec 9, 5:34 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 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 -- 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 android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---