Extract the value of CallType when the call is connected by using the callConnected() method

Hi all

I want to get the value of CallType when a call is connected I use this code:

Public MyClass extends AbstractPhoneListener {}

private static int callType;

public MyClass()

{

}

{} public void callConnected (int callId)
Boolean checkType is Phone.getCall (callId) .isOutgoing ();.
If (checkType)
callType = PhoneCallLog.TYPE_PLACED_CALL;
on the other
callType = PhoneCallLog.TYPE_RECEIVED_CALL;
}

}

but I did not value of callType when the call is connected. I also debug application but control entered the callConnected method. What should I do now please help...

have you added the phonelistener?
http://www.BlackBerry.com/developers/docs/7.1.0api/NET/RIM/BlackBerry/API/phone/phone.html#addPhoneL...

Tags: BlackBerry Developers

Similar Questions

  • PC cut his all when I called via Skype or use other programs

    A few months ago I bought a new desktop pc HP Envy and I'm really deal with it, but recently I'm under problems.

    A couple of weeks, my PC started all my audio muting for no reason when I got a call via Skype, at first it wasn't a problem because I could use other programs such as Teamspeak or mumble, but recently these programs get the same problems as well.

    The standard solution to make sure that the checkbox in the communication tab is set to "to do nothing" is checked as seen on this page, http://www.askvg.com/fix-windows-7-automatically-reduces-system-volume-for-games-pc-calls/

    I tried all possible combinations in the tabs in my reading and recording, but it still doesn't work.

    I added some screenshots that show what it looks like.

    Hello @Archangel52210,

    I understand that you are having problems with your new computer running Windows 8.1 where the audio is automatically inhibition. I'm you provide a document from HP support: use of the Recovery Manager to restore the software and drivers (Windows 8), which allows you to restore the original supplied with your computer drivers. As these drivers and their settings are working I think they once again and I hope when they are updated the next time Hey take better.

    Please re-post if you need extra support. Thanks for posting on the HP Forums. Have a great day!

  • Apex question 5.0 when you call the modal page

    Hello world

    I started work with apex 5.0 and I had a problem when I call a modal page; I have an interactive relationship with this query:

    WITH expert LIKE)

    Select user_id usr, LISTAGG(expert_designation,':') WITHIN GROUP (ORDER BY user_id) wording

    of t_utilisateur, t_expertise, table (xmlsequence (xmltype ('< a > < b >' | replace (user_expert_id, ':', '< /b > < b >') |.extract('/*/*') "< /b > < / a >"))) x

    where extractvalue (value (x), ' / b') = expert_id

    Group of user_id

    )

    Select USER_ID,

    USER_PASSWORD,

    USER_TUSER_ID,

    USER_NOM,

    USER_PRENOM,

    USER_DATE_NAISS,

    USER_DATE_RECRUT,

    USER_DATE_DEPART,

    USER_FONCT_ID,

    Libelle,

    USER_MGR_ID,

    USER_DEPT_ID,

    sys. DBMS_LOB. GetLength (USER_CV_FILE) CV,

    sys. DBMS_LOB. GetLength (USER_CV_CNFCPP_FILE) as CV_CNFCPP,

    ' < a class = "T-t-button - hot" href = "javascript:ajoutCertification('||)". USER_ID |') ; ' > Add < /a > '

    T_UTILISATEUR, expert of t

    where T_UTILISATEUR.user_id = t.usr;


    ajoutCertification() is a javascript function that calls the modal page and pass as a parameter the user id, the body of this function is:


    function ajoutCertification (user_id) {}

    document. Location.href ='f? p = & APP_ID.:19: & SESSION. : & DEBUG. : 19:P19_USCER_USER_ID: "+ user_id +":'

    }

    When I click on the button in the interactive report to call the modal page, I got this error message:

    102 page 19 application dialog box cannot be made successfully. Make sure that the page model used on page 19 is of type template

    'Page of dialogue', with appropriate initialization dialog JavaScript, the dialog box is closed and the dialog cancels code defined.

    any ideas on this problem and I thank you for your answers

    Hello

    See the Notes button which I created declaratively and it works very well.

    I would like to know if you have any questions now

    -Sunil Bhatia

  • When miss call occure all varibale lost the reference and reset

    Hello

    a know why I lost any variable value when entering call and missed call.

    my variable is static and I put create object on the manufacturer and the manufacturer is called only once.

    everything is working fine, but when Miss call occure I got a value null variable.

    someone knows how to fix this?

    Welcome to the support forum.
    static variables are not comprehensive on the BB. The phonelistener runs in the context of the phone application and does not access the values stored in the static variables of your main applications.

    Use world events or the runtimestore to return to the context of your application (do not run code in the phonelistener).

  • Setting default value for selectOneChoice when the Page loads

    BPM JDev 11.1.1.5.0

    I have a selectOneChoice component bound to a BPM data control. You need to set a specific value as the default value when the page is loaded for the first time.

    I did the scope of the bean managed as pageFlowScope.
    Then created a variable of string in the bean called 'postal code' and its setter I wrote like:

    You can follow this approach as well. But when you call the countryCode setter? You must set the value of the variable string.

    Then, I used your code in the jspx page.

    You need to edit my code in the jspx you use a managed bean. The code will change as below.

    
       
           
       
     
    

    I was suggesting to use a variable of pageFlowScope as defined in my previous code snippet. And on pageload, set this variable. To find out how to write/execute java code before page loads refer to this post:
    http://www.baigzeeshan.com/2011/05/How-to-run-Java-code-on-every-page-load.html
    In the afterPhase of the post method, you can set the variable pageFlowScope as shown below.

    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("countryCode", "IndiaIN");
    
  • How to extract the second sysdate value using the EXTRACT function

    Hello

    I want to extract the second sysdate value using the EXTRACT function.
    When I run the following query I get an error;

    SELECT extract (second OF SYSDATE) FROM dual;

    ORA-30076: field of invalid extract for the source of the extract.

    When I do to extract the month I get the correct result.

    Is there some necessary formatting by specifying the sysdate (or any other date value) in the query. ?


    Thank you.

    You can extract only the year/month / day, day

    SQL> Select extract(year from sysdate) from dual;
    
    EXTRACT(YEARFROMSYSDATE)
    ------------------------
                        2008
    
    SQL> Select extract(day from sysdate) from dual;
    
    EXTRACT(DAYFROMSYSDATE)
    -----------------------
                         20
    
    SQL> Select extract(month from sysdate) from dual;
    
    EXTRACT(MONTHFROMSYSDATE)
    -------------------------
                           11
    
    IF you enter Minute or Seconds
    
    SQL>  Select extract(minute from sysdate) from dual;
     Select extract(minute from sysdate) from dual
                                *
    ERROR at line 1:
    ORA-30076: invalid extract field for extract source
    but with timestamp you can get the seconds
    
    SQL> select EXTRACT(second FROM current_timestamp) from dual;
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                  39.473
    
    SQL> select EXTRACT(second FROM current_timestamp) from dual;
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                  57.474
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                  59.787
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                    .412
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                     .99
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                   1.458
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                   1.896
    
    SQL> /
    
    EXTRACT(SECONDFROMCURRENT_TIMESTAMP)
    ------------------------------------
                                   2.334
    

    Edited by: Viswarayar Maran on November 20, 2008 14:30

  • People cannot hear me when I call the iPhone 6

    Hi all

    When I call people from my iPhone 6 they heard me not talk at all.

    If I put the phone on speaker, they can hear me and I can record and playback voice memos with no problems at all.  I tried both a hard and soft reset which none has solved the problem.  I removed the cover and tried to call someone without him, but the problem still happens so this isn't my case interfering with the microphone.

    Anyone have an idea what might happen?  Would it be a problem with iOS 9.3.4 because the problem only happened since I updated to it AFAIK (though this could just be a coincidence)?

    Thank you very much!!

    Get help with microphones on iPhone, iPad and iPod touch - Apple Support -> check this. If the problem still persists let me know

  • When I call a file in firefox, the address bar inserts a backslash (\) before the name of the file and it does not load

    When I call a bit files in a backslash is inserted during the loading of firefox (http://razorbackpark.com/%5Chole17.htm). Therefore it will not load. If I manually enter the file in the address bar, it loads very well. How can I fix this behavior?

    Hi LTCreations, glad to hear that worked. It seems clear some cobwebs that cannot be offset by other menu items, but I have not studied precisely the difference.

  • Flash of the screen when a call arrives?

    It's a great phone. He does everything except tell me when someone calls. Im a hearing impairment and such when cant its sounds. Is there a way to make the strobe of the screen when a call by entering?

    It is not possible by default and I'm not aware of all the apps that do this.

    When a call arrives on the screen should turn on but not Flash.

    Connected by T-Mobile.

    Sep 27, 2010 12:21 AM, "wardo56".

  • I have a problem in my iPhone 5 s while I call someone when on-call time at 1 hour of the call is disconnected and say call failed can help you me in this problem.

    I have a problem in my iPhone 5 s while I call someone when on-call time at 1 hour of the call is disconnected and say call failed can help you me in this problem.

    What iOS version you are running. I've heard of it, but I heard no talk for a long time... You can update to iOS.

  • How can I get the TestStand splash screen to not show up when I call the results treatment Utility offline?

    So I call the Offline processing Utility (ORPU) a not executable call results in a plugin to perform a personalised treatment in another configuration.  Everything works fine, including having run reduced (mostly hidden) by using the option/tray.  When he called, the TestStand splash screen appears (certainly is not a show-stopper but it's confusing from the point of view of the user).

    Is it possible that I can get this start screen to not appear when calling the ORPU?  I noticed in the help, mention is made of the use of the callback file, and I wonder if someone has successfully used this to avoid the dialog box or other behaviors.  I would like more info on how it works, but it doesn't seem to be a vast detail on this in the help, and I'm not also find me useful examples.

    The source of the Offline utility treatment results is included with TestStand and can be changed.

    The ORPU source is located under "Components\Models\TestStandModels\Offline utility treatment results"

    From the source, you can see that there is no flag that allows you to hide the splash screen (except for / I leave, but that it will also close the ORPU!); However, you can easily change the ORPU so it does not show the start screen by removing the following lines in \Components\Models\TestStandModels\Offline Results Processing Utility\OfflineResultsProcessingUtility\MainForm.cs

    If (! data.) Quit smoking)
    splashScreenForm = new SplashScreen (mEngine, false);

    Regarding the flags without papers, there are not really many flags undocumented in the ORPU (even once, you can see them in the source), and undocumented flags have very specific use cases (open files from shell and NEITHER internal regression tests).

    A (non-official) complete list of indicators ORPU from 2014 TS:

    /?
    Shows help

    / tray
    Starts the ORPU in the status bar

    / exit-when-done
    Exits when all files are made

    / I'm leaving
    Leave immediately

    /process - files - Missing - Data
    Treats the files even if they lack of data

    / which-process-files-Missing-Data
    Do not process files that are missing data, show only a mistake (it is the default behavior).

    / Process-All-Profiles
    Start all profiles

    / Process-No.-Profiles
    Don't start any profile

    / Process-Profiles
    Treat the profiles specified in the following arguments

    / process-files
    Add the files specified for the specified profile

    / log - level

    Sets the logging level for the newspaper ORPU, all of the messages above, the specified log level is saved.

    /ShellOpen
    It is an internal indicator, it is used to treat applications for the shell (for example, after a double click on a tsr in Windows Explorer). Do not use this indicator.

    / non-interactive
    It is an internal indicator used for the test. Do not use this indicator.

    Please note that NEITHER does not support appellant flags undocumented and that NEITHER is not guaranteeing backward compatibility of these flags undocumented and they could change at any time, without warning.

    For a more detailed explanation of the working of each option, refer to the Arguments of the command line Utility using TestStand treatment results offline.

    Hope this helps,

    Francisco

  • When I insert the CD in the drive for ripping, Windows (Vista) Media Player asks me to insert the CD. It does not recognize that I have already a CD in the drive, it can not extract the CD.

    When I insert the CD in the drive for ripping, Windows (Vista) Media Player asks me to insert the CD. It does not recognize that I have a CD in the drive, it already and can not extract the CD. The air play perfectly to the reader.

    Hello, BGNG,.

    This thread has been created in wrong forum; the Microsoft moderation team has moved this thread on the forums of programs .

  • BlackBerry Smartphones BB shows the mobile instead of name telephone number when someone calls

    Hello

    I am a new BB user, I use BB Pearl 8110. The problem I encounter is most of the time my BB shows the phone number (no name) when someone calls even if I have the number in my address book.

    I have 250 + contacts, and most of the entries have multiple numbers (work, home and mobile). What is the reason?

    Or do I need to have the configuration settings for my BB show the name instead of number?

    Any help would be appreciated.

    You have enabled content protection?

    Go to the.

    1. Options
    2. Security options
    3. General settings
    4. Content protection: disable
  • Color image is not displayed when we call using the function DAL (LOGO)

    Hi all

    To change a picture of the legacy of the new Image in our MRL, the legacy Image is used by a lot of Faps (sections).

    (1) if we create the new article with new Images, the process becomes complex, as we need to check all the triggers and forms associated with it.so, we plan to create a field (with the same position as picture) DAL with functions of LOGO use

    EX:

    If (#process = 1)

    LOGO ("Idea", Fieldx (), Fieldy ())

    on the other

    LOGO ("LegacyImage", Fieldx (), Fieldy ())

    End

    Return("")


    Problem: The new Image is colored but when printed (called using "DAL") that is the impression that 'Black and White')

    We tried to use 'Refresh() '.


    Kindly help me with solutions,


    Thanks in advance

    Try to use the function ChangeLogo DAL instead.

    Change a logo on a section that has the set of attributes "print in color.

    This preserve the parameter "Print in color" and the logo print in color.

    See Re: how to get the graph to print in color when it is added using script

  • When I opened a project I can't call to connect to the server

    When I opened a project I can't call to connect to the server.  I see the green arrow and click but there is no link - the green bar with show doent IP etc and I can not connect with the mobile app

    I have tried phonegap since since updated to win 10 - it seemed to work - at least I could see with Windows 8.1

    Thanks in advance

    I found that if I turn off the personal settings of microsoft firewall, it works.  Can always leave external on

    Thanks for the research!

Maybe you are looking for

  • What is the problem with my resolution?

    There is something wrong with my browser resolution. Everything is too great. I tried using Ctrl +, Ctrl-Ctrl, scroll and using the Zoom button directly in the Menu but it works with any page I'm on. Which means that I have to do this every time I vi

  • HP Pavilion HPE h8-1111: Wireless upgrade - hardware Options network adapter?

    Hi, I am looking to change my Broadcom 802.11n WLAN adapt because of allegedly defective hardware. I was thinking to buy the same as that but given that its in a port "minicards", I was wondering if something "more great, better and faster" could be

  • Officejet6600 HP: HP ink

    Hello: I do not print in color, but I always seem to be runing of color ink.  Why does this happen?

  • List of models of Yoga that have a Bay pen?

    Hello I tried to find information on models Lenovo Yoga supporting the stylus and a Bay pen on the keyboard to keep, but I can't find information on the official site. Do you know the guys from any place where we have a list with these models? or do

  • I want to add the Boolean flag

    I wan to add boolean indiactor help me please friends