How can I register my application so that when I press compose sms button or even send sms my app appears in dialog Complete action using ? I have put that code to Manifest file (note NewMessageActivity sends sms) but it’s not working.
<activity
android:name=".NewMessageActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.SENDTO" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="text/plain" />
<data android:scheme="sms" />
<data android:scheme="smsto" />
</intent-filter>
</activity>
Any help ? Any suggestions ? Thanks !
So I finally found the right answer in the following link android: register application to receive sms
Also do not forget to add this permission
<uses-permission android:name="android.permission.SEND_SMS"/>to your Manifest file as Jbad26 wrote.