Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I implement automatic call to someone in Android?

Tags:

android

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 automatically. Is it possible without any user interaction to call on any number via my android phone?

like image 228
OnkarDhane Avatar asked Apr 30 '12 05:04

OnkarDhane


1 Answers

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

like image 141
nithinreddy Avatar answered Sep 29 '22 20:09

nithinreddy