Hi Honest hope this helps;
On Sep 7, 10:12 am, Honest <[email protected]> wrote: > Hello, > > can some one tell me how can i get notification when user send message > from mobile ? You can you a broadcast intent to notify you when a new sms comes in, you'll need to have the permission set in the manifest file, "<user- permission android:name="android.permission.RECEIVE_SMS" /> for your application. then you'll have to create your class something like this... public class foo extends BroadcastReceiver { public void onReceive(Context con, Intent i) { if(true == i.getAction().equals ("android.provider.Telephony.SMS_RECEIVED")) { SmsManager sms = SmsManager.getDefault(); //do stuff } } } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

