public static final String CLASS_SMS_MANAGER = "com.android.internal.telephony.SmsApplication";
public static final String METHOD_SET_DEFAULT = "setDefaultApplication";
private void setDefaultSms() {
try {
Class<?> smsClass = Class.forName(CLASS_SMS_MANAGER);
Method method = smsClass.getMethod(METHOD_SET_DEFAULT, String.class, Context.class);
method.invoke(null, getPackageName(), this);
} catch (Exception e) {
e.printStackTrace();
}
}
基本的默认的设置(设置广播之类的),,其他文章都有了,这里就不重复了
最后
以上就是土豪店员最近收集整理的关于android设置默认短信应用(非弹框)的全部内容,更多相关android设置默认短信应用(非弹框)内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复