Hi!
I have an app that uses the SMS interceptor to receive SMs, and PhoneSMS to send SMS. It has been working fine Android 2.2 > 4.1. It still works on 4.4.2 BUT, it does not show up on the Default SMS messenger options, so I cannot set it to be the default, and therefore the default messenger gets the message as well. The SMSInterceptor runs in a service (messageinterceptor) and the priority is set to 9999.
What do I need to do to make sure that KitKat recognizes my SMS app as an option for default messenger?
I am guessing it might be the manifest?
Any ideas would be greatly appreciated.
The current permissions in the manifest look like:
I have an app that uses the SMS interceptor to receive SMs, and PhoneSMS to send SMS. It has been working fine Android 2.2 > 4.1. It still works on 4.4.2 BUT, it does not show up on the Default SMS messenger options, so I cannot set it to be the default, and therefore the default messenger gets the message as well. The SMSInterceptor runs in a service (messageinterceptor) and the priority is set to 9999.
B4X:
xxxxsmsint.Initialize2("smsint", 9999)
What do I need to do to make sure that KitKat recognizes my SMS app as an option for default messenger?
I am guessing it might be the manifest?
Any ideas would be greatly appreciated.
The current permissions in the manifest look like:
B4X:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.WRITE_CONTACTS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application
android:icon="@drawable/icon"
android:label="xxxx-SMS"
android:theme="@android:style/Theme.Holo.Light">
<activity
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTop"
android:name=".main"
android:label="xxxx-SMS"
android:screenOrientation="unspecified">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTop"
android:name=".usersettings"
android:label="xxxx-SMS"
android:screenOrientation="unspecified">
</activity>
<service android:name=".messageinterceptor">
</service>
<receiver android:name=".messageinterceptor$messageinterceptor_BR">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>