I have been made app similar to this using android studio before.
It is app to send sms automatically from incoming call/sms/mms to sender again.
To implement your app, it has to use service with broadcastreceiver, delivered_sms(in [login to view URL]), permissions(send_sms, receive_sms).