Android Question [SOLVED] Android 5.1.1 and received SMS

Claudio Parmigiani

Member
Licensed User
Longtime User
Hi all,
I'm not able to handle/parse received SMS with a 5.1.1 device.

No problems (with other devices) up to release 5.0.2.

The service dedicated to handle SMSs, which usually come up at the first sms received, does not show any sign of life.
Even if I start it "manually" it seems to ignore every SMS event.

Here follows my manifest:
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission(android.permission.MODIFY_AUDIO_SETTINGS)
AddPermission("android.permission.CALL_PHONE")
AddPermission(android.permission.DISABLE_KEYGUARD)
AddPermission(android.permission.RECEIVE_SMS)
AddReceiverText(SMSIntercept,
<intent-filter>
    <action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>)

Any clue ?
Thank you for the support, as usual.
Regards,
Claudio.
 

Claudio Parmigiani

Member
Licensed User
Longtime User
Solved,
for some reason... something goes wrong between the "SMS service" and another one:

If I remove the

B4X:
#StartCommandReturnValue: android.app.Service.START_STICKY

from the other service, the SMSes are handled correctly.

This thing does not happen with previous Android versions...

Thank you for the support,
BR,
Claudio.
 
Upvote 0

Claudio Parmigiani

Member
Licensed User
Longtime User
Hi,
just to mark this thread as "definitively closed": the mistake was mine and the previous suggestion is irrelevant.

My APP wasn't receiving SMS because... I wasn't sending SMS to it.
Instead, I was sending "chat" messages.

Chat service is enabled by default on new Samsung devices, 'SMS mode' must be activated manually.
Unfortunately the messages appearance is the same of SMSes, and they are generated by the usual SMS APP.

My apologies.
Best Regards,
Claudio
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…