Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
558 views
in Technique[技术] by (71.8m points)

Send SMS message using non default SMS app on Android 4.4

Can I send SMS using no default SMS app on Android 4.4 Kitkat?

It means, Can I send SMS without ability to write to SMS Provider?

I confused about that on Android 4.4 Kitkat.

I wonder I can just send SMS using non default SMS app or not.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can send SMS even if your app isn't the default SMS app.

However, you won't be able to use the SMS provider.

That's the whole point of the new version - to make it clear to the user which app is allowed to use special SMS operations and have only one default app for this.

look at this text (taken from android developer blog) :

In consideration of some apps that do not want to behave as the default SMS app but still want to send messages, any app that has the SEND_SMS permission is still able to send SMS messages using SmsManager. If and only if an app is not selected as the default SMS app on Android 4.4, the system automatically writes the sent SMS messages to the SMS Provider (the default SMS app is always responsible for writing its sent messages to the SMS Provider).

so, in short, if all you need is to send and receive SMS, you can still do it.

however, some operations require that you will have your app as the default SMS app.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...