title: android: register application to receive sms
body: <p>how can I register my application so that when I receive a sms my app appears in dialog Complete action using. I have put in an intent code</p>
  
  <pre><code>&lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW"/&gt;
              &lt;action android:name="android.intent.action.SENDTO"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;category android:name="android.intent.category.BROWSABLE"/&gt;
              &lt;data android:scheme="sms"/&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>but it's not working... should I use receiver? Note that the activity in which I've inserted this code is not main activity. Thanks</p>