Sending intent to BroadcastReceiver from adb

前端 未结 8 1748
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 20:26

I\'ve got BroadcastReceiver class:

public class IntentReceiver extends BroadcastReceiver {

    final String tag = \"Intent Intercepter\";

    @Override
            


        
8条回答
  •  抹茶落季
    2020-11-29 20:59

    I've found that the command was wrong, correct command contains "broadcast" instead of "start":

    adb shell am broadcast -a com.whereismywifeserver.intent.TEST --es sms_body "test from adb" -n com.whereismywifeserver/.IntentReceiver
    

提交回复
热议问题