Can I implement automatic call to someone in Android?

前端 未结 3 1489
無奈伤痛
無奈伤痛 2020-12-10 17:37

I want to implement an automatic call from my android phone. If I set message for a particular number and date as well, then my android phone should call that number automat

相关标签:
3条回答
  • 2020-12-10 18:16

    Yes it is possible. The code for call is straight forward.

    Intent intent = new Intent(Intent.ACTION_CALL);   
    intent.setData(Uri.parse("tel:09999"));    
    startActivity(intent);
    

    Use your number in place of 09999. Don't forget to specify the permission to call in Android Manifest.xml

    0 讨论(0)
  • 2020-12-10 18:22

    Create an Alarm that will be fired at a particular time and add the code to call any particular number. Here is how you can set the AlarmManager to fire at a particular time. Then you can just call Intent.ACTION_CALL when your Alarm is fired.

    0 讨论(0)
  • 2020-12-10 18:26

    Yes you can, with Intent.ACTION_CALL.

    0 讨论(0)
提交回复
热议问题