Android: Register Application To Send/compose Sms
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 (n
Solution 1:
Try adding this permission:
<uses-permissionandroid:name="android.permission.SEND_SMS"/>Solution 2:
So I finally found the right answer in the following link android: register application to receive sms
<activityandroid:name="az.elman.grouptextfree.NewMessageActivity"android:label="@string/app_name" ><intent-filter><actionandroid:name="android.intent.action.VIEW" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="vnd.android-dir/mms-sms" /></intent-filter><intent-filter><actionandroid:name="android.intent.action.VIEW" /><actionandroid:name="android.intent.action.SENDTO" /><categoryandroid:name="android.intent.category.DEFAULT" /><categoryandroid:name="android.intent.category.BROWSABLE" /><dataandroid:scheme="sms" /><dataandroid:scheme="smsto" /></intent-filter><intent-filter><actionandroid:name="android.intent.action.SEND" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="text/plain" /></intent-filter></activity>Also do not forget to add this permission <uses-permission android:name="android.permission.SEND_SMS"/>
to your Manifest file as Jbad26 wrote.
Solution 3:
Android has brought-in the concept of 'Default SMS app' on KitKat. That is, the user can set an app, which is going to handle the sending / receiving of SMS, through Settings. So, if you want your app to be listed under default SMS apps category, your app needs to handle sending / receiving of SMS, MMS etc.. Please refer the link below for more information
http://android-developers.blogspot.com/2013/10/getting-your-sms-apps-ready-for-kitkat.html
Post a Comment for "Android: Register Application To Send/compose Sms"