title: Send and receive SMS inside my own application only, not in the native Message application in android using native SMS API
body: <p>I am having a requirement in my application where i need to integrate messaging in the app. I want to use android native SMS API to send the messages and receive them. The main challenge is that i don't want to show received messages in the Message application. All messages should be opened and send from my application only.</p>
  
  <p>I have tried receiving following intent in my broadcastreceiver :</p>
  
  <pre><code>&lt;intent-filter&gt;
      &lt;action android:name="android.provider.telephony.SMS_RECEIVED"&gt;&lt;/action&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>But when the message comes to my application at the same is is received by native Message application, which i don't want.</p>
  
  <p>I have also tried sending data message on a specific port in emulator, it is sending the messgae but not received by my application as well as Message native app on other emulator. </p>
  
  <p>Intent Filter is :</p>
  
  <pre><code>&lt;intent-filter&gt; 
          &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt; 
          &lt;data android:port="8901"/&gt;
          &lt;data android:scheme="sms"/&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>I am using the sendDataMessage() function with the given port.</p>
  
  <p>Is it possible send messages in a better and secure way so that there is no possibility to steal your data using the native SMS API in android ? If not what alternate I can go for implementing the same. </p>