解决方案 »
- 搭建安卓开发环境搞得我头大,求大神帮看下
- android编程时用到了menu键的相关操作,但是平板上却不显示menu键,求原因和解决方案。
- 一个Activity 两个SurfaceView 挂起给无法正常刷新绘图
- 有高手熟悉FragmentActivity,ActivityThread,ActivityManager方面的吗?给些资料或者思路。。555
- 怎么删除table里面一条数据啊
- 关于资源R.string的问题。求助各位大侠。
- root权限
- android 仿360手机助手(精品)首页抽屉效果
- 有没有这样的方法String.format("aaa%d, bbb%d, ccc%d", "我","你", “他”);
- 大家讨论下怎么样看Android源码
- 安卓支持ObjectInputStream的JAVA流么
- Android FTP下载 循环获取文件异常问题
I had the same problem so I did those simple steps and then I could chose my app as default, in settings and in my code, which I could not before.So :
1.
You must Have an Activity including an intent filter with an ACTION_SENDTO ("android.intent.action.SENDTO" ) and with schemas sms, smsto, mms, and mmsto.
Do it in your manifest file.
What I did was creating an empty activity that I will not use, with those parameters.2.
Do the same, by creating an empty Service including an intent filter with ACTION_RESPOND_VIA_MESSAGE ("android.intent.action.RESPOND_VIA_MESSAGE") and with schemas, sms, smsto, mms, and mmsto.
This service must also require the SEND_RESPOND_VIA_MESSAGE permission.
You must add all required permissions in your manifest.3.
Create an empty BroadcastReceiver including an intent filter with WAP_PUSH_DELIVER_ACTION ("android.provider.Telephony.WAP_PUSH_DELIVER") with the MIME type application/vnd.wap.mms-message.
The broadcast receiver must also require the BROADCAST_WAP_PUSH permission. You must add all required permissions in your manifest.4.
Create an empty BroadcastReceiver including an intent filter with SMS_DELIVER_ACTION ("android.provider.Telephony.SMS_DELIVER").
The broadcast receiver must also require the BROADCAST_SMS permission.
You must add all required permissions in your manifest.It important to set all these parameters without missing one.
Once you made all these steps, your app will be eligible and you can then set it as default sms app, leaving those created classes empty, and sticking with you old way of doing things.
The goal is simply set your app as default, so it will be fully fonctionnal like it was before, without code modification.