You can achieve this by doing following changes, 1.Set highest priority for your SMS broadcast reciever in your app AndroidManifest.xml file, so that any SMS received on phone will be broad casted to your BC receiver first, by using "android:priority" tag <intent-filter android:priority="integer" > //set to maximum
2.Now after receiving SMS broad cast which is your intended SMS(used for authentication) then abort this BC so that other applications will not receive this BC by using abortBroadcast(); 3. If other SMS than just ignore this SMS BC so that other applications will receive this BC. Regards, Chand Pasha On May 2, 7:09 am, Damien Cooke <[email protected]> wrote: > Hi All, > I am building an authentication service that passes me a token via SMS that > is used for authentication. Is there a way of consuming an SMS before the > SMS app gets it so the token is not exposed in the messages inbox? > > Damien -- 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

