我对通过收件箱短信(来自特定号码)打开我的应用程序有疑问,这可能吗?请指导我或提供一些提示来解决问题。
最佳答案
您可以通过短信中包含的链接打开您的应用。
像这样为您的域创建一个 intent-filter :
<activity
android:name="ActivityFromSMS" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="mydomain.com"
android:scheme="http" />
</intent-filter>
</activity>
然后,单击指向 http://mydomain.com/...
的链接(可以在短信中)将提示用户使用您的应用打开它。
关于android - 是否可以通过收件箱短信打开我的应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21429677/