but it also happens when I use another constructor of intent.Here is my code:
PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(), 0); SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage("9001100444", null, "This is test message", pi, null); Thanks Nemat On Jan 21, 4:31 pm, Nikhil Agarwal <nikhil.dontpa...@gmail.com> wrote: > Probably your SMSSender.class also sends aSMS. OnceSMSis sent, it > will pass an intent to the SMSSender activity. > > On Jan 21, 5:02 pm, Nemat <nemate...@gmail.com> wrote: > > > > > Hi..... > > > I am trying to sendsmsusing SmsManager class.Here is my code: > > > PendingIntent pi = PendingIntent.getActivity(this, 0, > > new Intent(this, SMSSender.class), 0); > > SmsManagersms= SmsManager.getDefault(); > >sms.sendTextMessage("9001100444", null, "This is test message", pi, > > null); > > >SMSis sent successfully but it is sent two times on the same phone- > > number and aving same content. > > > I dont get theproblem.Can anyone describe me the reason of this > >problem.....?? > > > Thanks in Advance > > Nemat- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en