1 Replies - 3013 Views - Last Post: 27 November 2012 - 05:28 AM

#1 viktor.slavkovic  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 20
  • Joined: 27-June 12

Android: make phone call/stop phone call?

Posted 15 November 2012 - 04:05 PM

I'm trying to make application that will (on button click) call specified number and stop the call after for example one second. Actually it should make a short call, just to ring once. Now, I found this code for making a call:

private void call() {
    try {
        Intent callIntent = new Intent(Intent.ACTION_CALL);
        callIntent.setData(Uri.parse("tel:123456789"));
        startActivity(callIntent);
    } catch (ActivityNotFoundException e) {
        Log.e("helloandroid dialing example", "Call failed", e);
    }
}



My question is: How to stop that same call?

:)

Is This A Good Question/Topic? 0
  • +

Replies To: Android: make phone call/stop phone call?

#2 JHol  Icon User is offline

  • New D.I.C Head

Reputation: 14
  • View blog
  • Posts: 45
  • Joined: 10-February 11

Re: Android: make phone call/stop phone call?

Posted 27 November 2012 - 05:28 AM

found this thread at stackoverflow:

http://stackoverflow...call-in-android
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1