Make my app launch when secret code entered?

后端 未结 3 1448
我寻月下人不归
我寻月下人不归 2021-02-02 04:34

How would I make my app launch when a secret code, such as *#*#12345#*#* is entered into the dialer?

I couldn\'t find a solution in the Android docs.

3条回答
  •  我在风中等你
    2021-02-02 05:00

    Create a broadcast receiver with this action:

    • ACTION_NEW_OUTGOING_CALL

    In the extras you find the dialed number.

    Edit: Here is tutorial for broadcast receiver.

提交回复
热议问题