Code example for PendingIntent

Methods: send

0
                    Log.e(THIS_FILE, "Thread that fires outgoing call has been interrupted");
                } 
            } 
            OutgoingCallChooser superActivity = ((OutgoingCallChooser)getActivity());
            try { 
                pendingIntent.send();
            } catch (CanceledException e) {
                Log.e(THIS_FILE, "Pending intent cancelled", e);
            } 
            superActivity.finishServiceIfNeeded(false);
        } 
    } 
 
    @Override 
    public synchronized void changeCursor(Cursor c) {
        if(c != null && callMade == false) {
            OutgoingCallChooser superActivity = ((OutgoingCallChooser)getActivity());
            Long accountToCall = superActivity.getAccountToCallTo();
            boolean canCallOtherAccounts = superActivity.canCallAutomatically();
            // Move to first to search in this cursor 
            c.moveToFirst();