Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法覆盖设置,这样如果我收到一条短信什么也没有发生,或者至少没有振动也没有声音?
您可以编写一个广播接收器类来接收短信,并调用
abortbroadcast();
用于中止短信的广播,并可以防止它进入通知和收件箱;相反,您可以轻松地将短信保存到字符串中....尝试一下...