Stop to open INTENT_CALL while calling. How?

Put your problem here if it does not fit any of the other categories.

Stop to open INTENT_CALL while calling. How?

Postby pranav09 » Wed Jun 30, 2010 2:38 pm

Hi everyone,

I have written the code for calling on particular phone number using the below code and it's working fine.


Code: Select all
             String strGetPhoneNumber = "9898989898"
             Intent i = new Intent(Intent.ACTION_CALL);
             i.setData(Uri.parse("tel:+91"+strGetPhoneNumber));
             startActivity(i);



When i start this activity, it displays the dialog of calling. Actually, i don't want to open that dialog. So, when i click on the button, the dialog should not open because i don't want to show phone call to user. How it possible to do?

I am waiting for your valuable response.

Thanks.
_______________
Pranav
Pranav
User avatar
pranav09
Senior Developer
Senior Developer
 
Posts: 128
Joined: Mon Jan 19, 2009 12:01 pm
Location: Ahmedabad, India

Top

Re: Stop to open INTENT_CALL while calling. How?

Postby blundell » Thu Jul 01, 2010 2:49 pm

Intent.ACTION_CALL Will always show the dialer.

L2Google

http://www.manning-sandbox.com/thread.j ... geID=92587

Not sure if they concluded with a result but it defiently gives you a feel for the subject, enjoy the read :-)
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: Stop to open INTENT_CALL while calling. How?

Postby pranav09 » Fri Jul 02, 2010 4:17 pm

Hi blundell,

Yes, i agree with you and i appreciate your help.

Thanks.
______________
Pranav
Pranav
User avatar
pranav09
Senior Developer
Senior Developer
 
Posts: 128
Joined: Mon Jan 19, 2009 12:01 pm
Location: Ahmedabad, India

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 15 guests