mirror of
https://github.com/pppscn/SmsForwarder
synced 2025-08-03 17:37:40 +08:00
不兼容Android 9.xx、10.xx (PS.暂未解决收不到广播问题)
This commit is contained in:
parent
cf30151c55
commit
313f8f3612
@ -49,7 +49,7 @@ Android手机监听短信并根据指定规则转发到其他手机:钉钉机
|
|||||||
- [x] 转发到企业微信应用消息
|
- [x] 转发到企业微信应用消息
|
||||||
- [x] 在线检测新版本、升级
|
- [x] 在线检测新版本、升级
|
||||||
- [x] 清理缓存
|
- [x] 清理缓存
|
||||||
- [x] 兼容6.xx、7.xx、8.xx、9.xx、10.xx
|
- [x] 兼容6.xx、7.xx、8.xx、~~9.xx、10.xx~~(PS.暂未解决收不到广播问题)
|
||||||
- [x] 支持双卡手机,增加卡槽标识/运营商/手机号(如果能获取的话)
|
- [x] 支持双卡手机,增加卡槽标识/运营商/手机号(如果能获取的话)
|
||||||
- [x] 支持多重匹配规则
|
- [x] 支持多重匹配规则
|
||||||
- [ ] 支持正则匹配规则
|
- [ ] 支持正则匹配规则
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
package com.idormy.sms.forwarder.BroadCastReceiver;
|
|
||||||
|
|
||||||
import android.content.BroadcastReceiver;
|
|
||||||
import android.content.Context;
|
|
||||||
import android.content.Intent;
|
|
||||||
import android.util.Log;
|
|
||||||
import android.widget.Toast;
|
|
||||||
|
|
||||||
|
|
||||||
public class MessageBroadcastReceiver extends BroadcastReceiver {
|
|
||||||
public static String EXTRA_DATA = "data";
|
|
||||||
public static String ACTION_DINGDING = "com.idormy.sms.forwarder.action_dingding";
|
|
||||||
private String TAG = "MessageBroadcastReceiver";
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onReceive(Context arg0, Intent intent) {
|
|
||||||
Log.d(TAG, "onReceive intent " + intent.getAction());
|
|
||||||
String action = intent.getAction();
|
|
||||||
if (action.equals(ACTION_DINGDING)) {
|
|
||||||
String sendStatus = intent.getStringExtra(EXTRA_DATA);
|
|
||||||
Toast.makeText(arg0, "dingding sendStatus: " + sendStatus, Toast.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user