Question

I want to check whether my app is the default SMS app in device or not ? In the Android Developer Blog they are using Telephony.Sms.getDefaultSmsPackage(),Where Telephony is a part of android.provider.Telephony which is a part of open source release . Here clearly mentioned that "you should not try to use it from your applications." than how can I find default SMS app in device ?

Was it helpful?

Solution

Where Telephony is a part of android.provider.Telephony which is a part of open source release .

You are not linking to an "open source release". You are linking to an email from 2008.

Here clearly mentioned that "you should not try to use it from your applications."

That phrase is not mentioned in the blog post. That is from an email from 2008.

than how can I find default SMS app in device ?

Use Telephony.Sms.getDefaultSmsPackage(), as is mentioned in the blog post.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top