0

I am developing an app for a cab and have to implement the call facility.I am done with this calling feature but it is showing the dialed number in dialer, but I am in need to hide the dial number from the dialer.we are doing this just to make female passenger safe and comfortable while having the ride and after the ride.

Santosh Yadav
  • 338
  • 2
  • 4
  • 15
  • 1
    User has to be able to see where does his device calling. There is no way, and should be no way to hide a number, as the user is paying money for the call. If you want not to show target number, use VoIP to deliver call to some backend, and from there - use some call gateway to call to the phone number. – Vladyslav Matviienko Jul 11 '17 at 08:25
  • As @VladMatvienko said it is not possible. The activity for calling has the complete controll until it is finished and your programm has the controll again. That is a design to prevent missusing the dialing function. – Nico Jul 11 '17 at 08:27
  • Create custom dialer for this purpose, where you can customize UI of dialer with some unrelated UX. http://eagle.phys.utk.edu/guidry/android/simpleDialer.html – Pankaj Kumar Jul 11 '17 at 08:28
  • @Santosh Yadav i think you can use Twillio for this its provides some functionalities like not showing user number ..its provides fake number.. – Dileep Patel Jul 11 '17 at 08:40

2 Answers2

0

While calling Intent, Use Intent.ACTION_CALL. It will directly call at particular number without showing dialer to user.

Pallavi Tapkir
  • 781
  • 7
  • 28
0

Use Intent.ACTION_CALL it will directly call

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