Call (phone) application for android [closed]

-4

I did some research and it seems to me that it is not possible to create a app phone call, someone else has had this same problem, it will be used as a control using the numeric keypad, app default works, but client wants you to be more visually friendly by changing the numbers by icons!

    
asked by anonymous 07.03.2014 / 14:26

1 answer

1

Phone call? The question was not very clear.

If so, here goes: I've never done such an implementation, but I believe it's possible. The S.O. Android is built on the same framework in which we develop the applications. It is possible to intercept virtually all the actions of the operating system, and it is also possible to call almost all your actions.

This should work:

 String uri = "tel:" + "555133333333"; // aqui, óbvio, o número para o qual deseja ligar.
 Intent intent = new Intent(Intent.ACTION_CALL);
 intent.setData(Uri.parse(uri));
 startActivity(intent);

And you must authorize the use of CALL_PHONE in the application manifest file.

<uses-permission android:name="android.permission.CALL_PHONE" />
    
07.03.2014 / 14:35