How to recoginize a call out?

Hi, here is my problem:

I can listen to a call using AbstractPhoneListener. I can get the last call:

PhoneLogs _phoneLogs = PhoneLogs.getInstance();
PhoneCallLog _phoneCallLog = (PhoneCallLog)_phoneLogs.callAt(_phoneLogs.numberOfCalls(_phoneLogs.FOLDER_NORMAL_CALLS)-1,
            _phoneLogs.FOLDER_NORMAL_CALLS);

But how can I check if this last appeal (_phoneCallLog) was an outgoing?

I use it - I thought that sth is wrong but seems that I see it the average opossite. I mean:

TYPE_PLACED_CALL
Successfully connected call. -I got it - this is the type when I call and my call was received

TYPE_RECEIVED_CALL
Incoming call has been received successfully. -I got it - this is the type when someone calls me and I received it

If I was using Type_Placed_Call:

If ( _phoneCallLog.getType () == PhoneCallLog.TYPE_PLACED_CALL ) {}

firsty, I thought that sth is wrong, but after a few tries, I realized that I understand api reverse the path and I have to use Type_received_call.

so:

if ( _phoneCallLog.getType () is PhoneCallLog.TYPE_RECEIVED_CALL) {}

Kind regards

Tags: BlackBerry Developers

Similar Questions

  • How can I change the size of the font for the comments/text call out boxes?

    How can I change the size of the font for the comments/text call out boxes?

    Hey sylviec10386621,

    Once you add any call box, select this option and press (Ctrl + E) to open its properties.

    Try this at your end and let me know how it goes.

    Kind regards

    Ana Maria

  • How to make my system out of safe mode?

    How to make my system out of safe mode?  I caused this problem myself when I went into the control panel while trying to improve startup speed.

    original title: Safe Mode

    Please press the Windows key and the R key on your keyboard together. Now, you will get a run window. In the immediate window please type MSCONFIG and press Ok...

    Now, you will get a new window called System Configuration / System Configuration utility.
    Go to the general tab and select the Normal startup option and press Applay. OK

    Restart the computer... Now your computer will begin upward in Normal mode...

  • SPA-3102: how to fill the calls from SIP to PSTN and vice versa?

    Hello, since my ISP to my office blocked SIP ports, of I'll try and use it at home where the ATA works very well.

    If I call you ATA installed in my office in the United States (where there is no problem) to my ATA at home in India, I have how to route the call selectively to theFXS port or port FXO of the anti-terrorism Act in India? I I want to answer the call directly using the phone connected to the ATA instrument or make another local call out on the PSTN connection.

    TIA

    You get two accounts of Gizmo.  You put an account on the tab line 1, you put the other account on the PSTN line tab.  If you want to ring the phone attached to the SPA3102, you dial the account tab line 1.  If you want to get the tone to fill an outgoing line PSTN call, you call the account registered on the PSTN line tab.

  • PL/SQL - Call Out Ref Cursor returned by a stored procedure

    Hello

    I am creating a procedure where a Ref Cursor is defined as an OUT parameter, my question is how to shout that the Ref Cursor when I run for example here is how I want to call my EXEC sql command:

    EXEC film_not_in_stock (2,2,vcur);

    Here is the procedure:

    CREATE OR REPLACE PROCEDURE film_not_in_stock (p_film_id in NUMBER, p_store_id number, vcur ON SYS_REFCURSOR)

    IS

    News sys_refcursor;

    v_cur inventory.inventory_id%TYPE--ou is the same type of column inventory_id

    v_cur sys_refcursor;

    BEGIN

    Heart OPEN to SELECT inventory_id

    INVENTORY

    WHERE film_id = p_film_id

    AND store_id = p_store_id

    AND inventory_id NOT IN (SELECT inventory_in_stock (inventory_id) FROM dual);

    News of FETCH in v_cur;

    OUTPUT WHEN heart % NOTFOUND;

    END;

    /

    I know there are typos in the procedure, you will appreciate if you can help me to put it right.

    Thank you very much!

    Tonya.

    In fact, based on your previous post, function inventory_in_stock returns 0 or 1. If so, there are:

    CREATE OR REPLACE

    PROCEDURE film_not_in_stock)

    p_film_id in NUMBERS

    p_store_id in NUMBERS

    p_cur ON SYS_REFCURSOR

    )

    IS

    News sys_refcursor;

    v_cur inventory.inventory_id%TYPE--ou is the same type of column inventory_id

    v_cur sys_refcursor;

    BEGIN

    OPEN p_cur

    FOR

    SELECT inventory_id

    INVENTORY

    WHERE film_id = p_film_id

    AND store_id = p_store_id

    AND inventory_in_stock (inventory_id) = 0;

    News of FETCH in v_cur;

    OUTPUT WHEN heart % NOTFOUND;

    END;

    /

    SY.

  • How is this text called Animation? is there a predefined text?

    How is text Animation called? y at - it a text Preset Animation that one could use?

    Like shaking and shaking on the text animation.

    Watch the vid to 04:59

    http://www.YouTube.com/watch?feature=player_detailpage & v = UUxsnAu-tVc #t = 299 s

    Thanks in advance

    If you mean how you would do something the way the word defeated moves in and then just set your text / graphics layer 3D and starting at the rear position of the camera and move it to display a few images, then move it out of sight. There is no quiet text do that exactly. There is nothing more than a simple couple of keyframes.

  • How my emergency phone call work

    How my emergency phone call work

    Google > https://www.google.com/search?q=iphone + emergency call +

  • How to disable the caller ID?

    I want to disable my caller ID.

    This message was transferred from its previous location to create his own new topic here; his subject and/or the title has been changed to differentiate the position of other requests for information and to reflect the content of the post. A link to this message appears when the post was initially added.

    Hi, Jaypee26, and welcome to the community,

    Please refer to this section of the FAQ:

    https://support.Skype.com/en/FAQ/FA2551/how-do-i-deactivate-caller-identification?

    Thank you!

    Elaine

    __________________________________________________________________________________________________
    Your question has been answered? Please click on the link to accept as a Solutionfor everyone can quickly find what works! As a post or want to say, 'Thank You ' -? Click on the button of congratulations!
    Reliable information: Brian Krebs: 3 basic rules for online safety

  • I get my email on two computers. How to make a computer out of the loop?

    I get my email on two computers. How to make a computer out of the loop without jeopardizing my Comcast email account?

    Using Outlook Express? Go to: tools | Accounts and delete the account. If you think you can it in the future, go to the properties of the account, and under the general tab, simply uncheck: include this account when receiving or synchronization.

    If you are interested, you can receive messages at a time without losing them on one.

    On both machines:

    Tools | Accounts | Mail | Properties | Advanced - Check: leave a copy of messages on the server.

    On a single computer only, make sure to delete messages after X days to satisfy your allocated space that you get from your server.

  • How to get the computer out of safe mode of power

    How to get the computer out of safe mode of power

    Hello jeffg56,

    I understand that you want to leave safe mode, follow the steps below:

    Exit Safe Mode:

    1. Click Start, type msconfig in the search field and press ENTER to open the System Configuration window.

    2. On the general tab of the System Configuration window, select Normal startup, and then click OK.

    I hope this has been helpful, please let me know if you need more help.

    Thank you

  • What is blue screen and what to do and how to fix this with out taking back to factory setting and reinstalling Vista

    What is blue screen and what to do and how to fix this with out taking back to factory setting and reinstalling Vista

    When a BSOD (Blue Screen of Death) the system failure occurs, for most users, there not enough time to fully record what he says. the exact text is important for anyone trying to diagnose what is wrong. You can save time when the error occurs then by following the procedure described below.

    If you already did it disable the auto reboot system error. This should help by allowing the time to write the code to Stop error and related information correctly. Select Start, do a right-click on computer select Properties, advanced, system settings startup and recovery, system failure and uncheck the box before automatically restarting. Re-do not enable automatic restart in the event of system failure after obtaining this information, this setting is the best left to not allow an automatic restart.

    If the failure occurs during the initialization of the computer, you need to try a different approach. You can access the Advanced Options Menu of Windows on multiple computers by constantly pressing the F8 (key) key when starting and selecting the option - disable automatic restart in case of system error. This method is not always easy to use because it may be difficult to press the F8 key at the right time. Try again if it doesn't work the first time. On some computers, a different key must be used.

    Send a copy of your dumpfile as a shared file on your disc of sky with a link here.
    http://social.technet.Microsoft.com/forums/en-us/w7itproui/thread/4fc10639-02dB-4665-993a-08d865088d65

  • How (if possible) I point out a whole day in the Windows calendar instead of just a single event? (With the help of Vista Ultimate) Thank you.

    How (if possible) I point out a whole day in the Windows calendar instead of just a single event? (With the help of Vista Ultimate) Thank you.

    I have no experience with Windows Calendar, but see this article for a bit of luck:

    Customize Windows Calendar
    http://Windows.Microsoft.com/en-us/Windows-Vista/customize-Windows-Calendar

  • How to make a call from CPO to vCO (vcenter orchestrator)?

    How to make a call from CPO to vCO (vcenter orchestrator)?

    Hello

    I am trying to create a workflow that would connect to a vCO.

    I was Expecting

    1. how to create targets for the vCO and

    2. how acess that target.

    Concerning

    Shiva

    1) there is no target for the vCO. We have a target/connection to Virtual Center (vCenter)

    (2) If you want to make vCO calls you could do, it all depends on how the API is structured. You can make calls via web services or CLI, etc.

    If you give your use case it is perhaps more to discuss. If you need an ENH or put something in, you can open a case with the TAC.

  • Anyone know how to "cone" and "fade out", a rule (online tool) at each end? Thanks in advance!

    Anyone know how to "cone" and "fade out", a rule (online tool) at each end? Thanks in advance!

    Use features of variable width.

  • Whenever I have download cloud Barnard, my old email comes up and he tells me to "check email". It's my old email and I can't get accsess, how can I switch it out whit my other

    Whenever I have download cloud Barnard, my old email comes up and he tells me to "check email". It's my old email and I can't get accsess, how can I switch it out whit my other

    Hello

    Please see the links below:

    https://forums.Adobe.com/thread/1446019

    CC has a fake email, can not change

    Hope that helps!

    Kind regards

    Sheena

Maybe you are looking for

  • The use of recovery of product with external devices?

    I have a laptop Toshiba Satellite and it is that I wanted to re - format my windows XP. But I realized that my CD Player no longer works so I decided to put my external CD burner on my pc. When the laptop is turned on, the CD is well recognized from

  • How to remove contacts from AutoComplete in Apple Mail?

    I've recently updated to El Capitan, and I had so many problems of Apple Mail, I am close to resolve. Here's my problem: when I type a letter in the field 'To' - like saying "n" - all emails that I received recipients that begin with the letter "n" i

  • Satellite P300-220 - cannot run Recovery Disc Creator

    Hello Yesterday I received my new laptop (Satellite P300-220). Today, I'm trying to make a record of recovery and launch "Toshiba Recovery Disc Creator", the hourglass appears for 3 or 4 seconds but nothing else, cannot access the application.Any ide

  • Restarted automatically during playback of video file.

    While playing a playback of a video file of 700 MB iam or over some files, my pc will be automatically restarted.Card Intel (R) Celeron (R) CPU - mother2.40 GHz with 1 GB of RAM. OS - Windows XP Professional Version 2002 Service pack 3

  • notebook of opening the files adobe reader PDF from the internet in Japanese?

    All adobe PDF downloaded from internet documents open in Notepad. To make it worse he opens to the Japanese or Chinese script! I can open them while I open with Notepad seems to have become the default for all downloaded docs. Ideas please Frank 5711