質問

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 ?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top