Help me for make a Pray time app

Hello,

I wanna try to make an app that is:

In-app just having a Button “on and off”. When I ‘on’ it, my device will go to Full DND mode, and all incoming calls will be rejected and send an auto text message to the number.
SMS will send from my number.

The app for my personal uses only.

Please help me how can I do it?

Update:

I am getting number for the outgoing calls. but not incoming for calls.

Qn:
How do I get data from the incoming call?
How do I reject incoming calls after one ring?
How to take mobile silent mode?

What have you tried or researched so far?

i did that. I am unable to take device dnd or full silent mode also the call is unable to reject.

update.
I am getting number for the outgoing calls. but not incoming for calls.

Qn:
How do I get data from the incoming call?
How do I reject incoming calls after one ring?
How to take mobile silent mode?

is anyone can help me?

Please have a look at this extension by Taifun. This may be the answer for some of your questions.

1 Like

thank you very much.

How do I get the number from the incoming call?
How do I reject incoming calls after one ring?

Please check out this page for getting the number from incoming call

1 Like

the same block works in app inventor but does not work in kodular.
blocks (2)