broadcast receiver for sms receive is geting call at missied call in Android
<p>I have created auto text reply application in which i declared receiver in manifeast file and declared action tag as follows.</p>

<pre><code>&lt;receiver android:name=".SmsReceiver"&gt; 
          &lt;intent-filter&gt; 
            &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt;
          &lt;/intent-filter&gt; &lt;/receiver&gt; 
</code></pre>

<p>In receiver class i just check action type of receiver as follows.</p>

<pre><code>public void onReceive(Context context, Intent intent)
{

          if(intent.getAction().equalsIgnoreCase("android.provider.Telephony.SMS_RECEIVED"))
         {
           Bundle bundle = intent.getExtras();        
           SmsMessage[] msgs = null;
           String str = "";    
           if (bundle != null)
            {
             //---retrieve the SMS message received---
              Object[] pdus = (Object[]) bundle.get("pdus");
              msgs = new SmsMessage[pdus.length];
              for (int i=0; i&lt;msgs.length; i++)
                 {
                    msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);                
                    str += "SMS from " + msgs[i].getOriginatingAddress();                     
                    str += " :";
                    str += msgs[i].getMessageBody().toString();
                    str += "\n"; 
                    address=msgs[i].getOriginatingAddress();
                 }
       /* other functionality........... */
     }

     }
</code></pre>

<p>Now this receiver is getting call for incoming text message but some time missed call also
i don't want this to get call on missed call. what i have to do to avoid missed call.</p>

<p>Thank You.
  Vikram</p>
