SMS blocking and problem resolution in android version 4.4 (kitkat)

We have sms blocking the application live on google play. It blocks sms if it satisfies any blocking condition, otherwise we enable this sms for the built-in mailbox. It works well on all versions except android 4.4 (Kitkat). We tried to implement the new sms-apis, available for 4.4, and were successful in blocking sms after this application became a standard SMS application. But the problem is that if sms does not satisfy any sms blocking condition, then we have no way to move this sms to our own mailbox.

Another option we have is to create a common sms application with all sms related features. But in our case, it is useless.

So, is there another option available in the new Android set for Android where I can send sms to other sms applications if I don't want to block this sms?

Please help me .. Getting a lot of comments from stars from kitkat users on this issue.

+4
source share
1 answer

Telephony Content Provider (“SMS Provider”) allows applications to read and write SMS and MMS messages on the device. It includes tables for receiving SMS and MMS messages, composing, sending, pending, and much more.

Android 4.4, " SMS ". SMS- SMS, SMS- SMS_DELIVER_ACTION, SMS- WAP_PUSH_DELIVER_ACTION, MMS. SMS- , SMS, .

, SMS- , SMS-, SMS-, SMS_RECEIVED_ACTION, , . , --- SMS- - , , .

, SMS- KitKat.

android:

<manifest>
    ...
    <application>
        <!-- BroadcastReceiver that listens for incoming SMS messages -->
        <receiver android:name=".SmsReceiver"
                android:permission="android.permission.BROADCAST_SMS">
            <intent-filter>
                <action android:name="android.provider.Telephony.SMS_DELIVER" />
            </intent-filter>
        </receiver>

        <!-- BroadcastReceiver that listens for incoming MMS messages -->
        <receiver android:name=".MmsReceiver"
            android:permission="android.permission.BROADCAST_WAP_PUSH">
            <intent-filter>
                <action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />
                <data android:mimeType="application/vnd.wap.mms-message" />
            </intent-filter>
        </receiver>

        <!-- Activity that allows the user to send new SMS/MMS messages -->
        <activity android:name=".ComposeSmsActivity" >
            <intent-filter>
                <action android:name="android.intent.action.SEND" />                
                <action android:name="android.intent.action.SENDTO" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="sms" />
                <data android:scheme="smsto" />
                <data android:scheme="mms" />
                <data android:scheme="mmsto" />
            </intent-filter>
        </activity>

        <!-- Service that delivers messages from the phone "quick response" -->
        <service android:name=".HeadlessSmsSendService"
                 android:permission="android.permission.SEND_RESPOND_VIA_MESSAGE"
                 android:exported="true" >
            <intent-filter>
                <action android:name="android.intent.action.RESPOND_VIA_MESSAGE" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="sms" />
                <data android:scheme="smsto" />
                <data android:scheme="mms" />
                <data android:scheme="mmsto" />
            </intent-filter>
        </service>
    </application>
</manifest>
+3

All Articles