Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to send an SMS in Android Kitkat from non-default app without writing to SMS Provider
    primarykey
    data
    text
    <p>My Android app uses SMS to silently send out notifications. Prior to Kitkat these notifications were not recorded into the SMS Provider and hence did not appear in the user's conversation lists. This is the app's desired behavior.</p> <p>With the Kitkat SMS changes (refer SmsManger documentation quoted below) these messages are still being sent but are now automatically being written to the SMS provider and thus appearing in the user's conversation lists. This is undesirable for my app.</p> <blockquote> <p>Beginning with Android 4.4 (API level 19), if and only if an app is not selected as the default SMS app, the system automatically writes messages sent using this method to the SMS Provider (the default SMS app is always responsible for writing its sent messages to the SMS Provider). For information about how to behave as the default SMS app, see Telephony. </p> </blockquote> <p>It sounds like I could prevent the automatic writing to the provider by making my app the default and then not writing to the provider. However, this would be a terrible user experience in the context of my app, so I would only consider it as an absolute last resort.</p> <p>My question is then - is there a way to <strong>silently</strong> send SMS in Kitkat <strong>without</strong> my app having to be the default app? </p> <p>I've read the responses to this question <a href="https://stackoverflow.com/questions/19560323/send-sms-message-using-non-default-sms-app-on-android-4-4">Send SMS message using non default SMS app on Android 4.4</a> but that is more concerned with ensuring that the messages <strong>are</strong> being written to the provider. I don't want that.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload