Probably your SMSSender.class also sends a SMS. Once SMS is 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 send sms using SmsManager class.Here is my code: > > PendingIntent pi = PendingIntent.getActivity(this, 0, > new Intent(this, SMSSender.class), 0); > SmsManager sms = SmsManager.getDefault(); > sms.sendTextMessage("9001100444", null, "This is test message", pi, > null); > > SMS is sent successfully but it is sent two times on the same phone- > number and aving same content. > > I dont get the problem.Can anyone describe me the reason of this > problem.....?? > > Thanks in Advance > Nemat
-- 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