Call app (phone) for android

Asked

Viewed 2,913 times

-4

I did some research and it seems to me that it is not possible to create a app phone call, someone has had this same problem, it will be used as control using the numeric keyboard, the app standard works, but the customer wants it to be more visually friendly by exchanging the numbers for icons!

  • 2

    I couldn’t understand your doubt, what you’re trying to do?

  • 1

    What do you mean a calling app? Do you mean that it calls? Or that it accesses Calllog? Specify the question better.

  • Skype and Viber make calls.

  • It wouldn’t interest you to simply call the S.O’s Elephonic calling app.?

  • not because it will actually be using as control not to make voice call

  • and now it’s clearer my doubt?

  • Let me get this straight. You want to replace the default keypad with one with icons?

  • exactly! @Onosendai

Show 3 more comments

1 answer

1

Phone call? The question was not very clear.

If that’s it, here it goes: I have never made such an implementation, but I believe it is possible. S.O. Android is built on the same framework in which we develop the applications. It is possible to intercept virtually all actions of the operating system, and it is also possible to call almost all its actions.

That 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 need to authorize the use of CALL_PHONE in the application manifest file.

<uses-permission android:name="android.permission.CALL_PHONE" />
  • launch an internet does not solve my problem.

  • Doesn’t solve why? Didn’t connect? You’re testing on an emulator, mobile phone or tablet?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.