I have a widget and I want it to make a phonecall to a particular number when the user clicks on the widget. How do i do this? Please help.
public static Intent newPhoneCallIntent(String phoneNumber){ Intent callintent = new Intent(Intent.ACTION_DIAL); callintent.setData(Uri.parse("tel:"+phoneNumber)); return callintent; } startActivity(newPhoneCallIntent("5555555555"));