Can I implement automatic call of someone in Android?

I want to make an automatic call from my Android phone. If I set a message for a specific number and date, then my Android phone should call this number automatically. Is it possible, without any user interaction, to call any number through my Android phone?

+5
source share
4 answers

Yes it is possible. Code to call directly.

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

Use your number instead 09999. Do not forget to specify the permission to call in Android Manifest.xml

+7
source

Alarm, - . , AlarmManager . Intent.ACTION_CALL .

+3

Yes, you can Intent.ACTION_CALL .

+1
source
Intent intent = new Intent(Intent.CALL_ACTION);   
intent.setData(Uri.parse("tel:09999"));    
startActivity(intent);

I want to put this method outside the onClick method

0
source

All Articles