×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    15

    Question Suppress unexpected MessageBox

    Hi for all! I'm developing application with libcellular-qt API for requesting USSD messages from operator. After sending USSD command with next code:
    Code:
    void BalanceManager::getBalance(const QString &ussdCommand)
    {
        if(supplementaryServices->isBusy())
        {
            qDebug() << ">> Service is busy!";
            return;
        }
    
        supplementaryServices->sendCommand(ussdCommand);
        qDebug() << ">> Balance requested " << ussdCommand;
    }
    I can receive signal with result (that's good for me):
    Code:
    void 	commandCompleted (const QString &result)
    but after popup unexpected message box with result... In docs not information about this ...

    How I can suppress this message box or get result without it?

  2. #2
    Registered User
    Join Date
    Oct 2010
    Posts
    15

    Re: Suppress unexpected MessageBox

    I think that this behavior of Cellular Service Daemon, because when I closed my app Dialog opened. This dialog is QML Dialog, I don't know how suppress this dialog... Who knows how I can to do this? or close it...

  3. #3
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Suppress unexpected MessageBox

    Not really sure you can remove it, do you have small apps we can test and which shows this behaviour?

  4. #4
    Registered User
    Join Date
    Oct 2010
    Posts
    15

    Re: Suppress unexpected MessageBox

    You can get simple app from this link:
    http://file.qip.ru/file/bjiRQg4N/nBalance.html

  5. #5
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Suppress unexpected MessageBox

    Hi,
    So the dialog belongs to "call-ui". To get rid of it, you can kill call-ui after you call the method BalansManager::getBalance.
    I know this is not really the best way but it looks call-ui listen to this call:
    signal sender=:1.17 -> dest=(null destination) serial=243 path=/com/nokia/csd/ss; interface=com.nokia.csd.SS.USSD; member=Released
    string "THE MESSAGE"
    string ""

  6. #6
    Registered User
    Join Date
    Oct 2010
    Posts
    15

    Re: Suppress unexpected MessageBox

    Thanks for reply, I monitored this d-bus message and viewed that this broadcast message for call-ui... After kill call-ui will be restored after? Can I send mail to developers of call-ui for resolve this situation in API level? Because celullar API is public, but USSD in background opening in call-ui Dialog.

  7. #7
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: Suppress unexpected MessageBox

    Hi,

    call-ui process starts immediately after killing it. So it should not be an issue.

  8. #8
    Registered User
    Join Date
    Oct 2010
    Posts
    15

    Re: Suppress unexpected MessageBox

    How I can to make USSD request without Dialog? I tried make USSD request with python gsmdecode from maemod USSD-widget, but it's can't init modem for sending AT commands ...

  9. #9
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Suppress unexpected MessageBox

    Hi,
    At this stage I don't believe Nokia developers can change behavior of existent code since any change have to be tested and re-tested. I'm sure they will ignore such request.
    I don't believe you can get easily access to the modem because of AEGIS restrictions.

  10. #10
    Registered User
    Join Date
    Oct 2010
    Posts
    15

    Re: Suppress unexpected MessageBox

    So, I can't doing USSD requests in background in my service ... It's so bad... Because to catch moment when call-ui killed in loop - crazy idea and so expensive in loop!

  11. #11
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Suppress unexpected MessageBox

    how many USSD requests do you have to perform? So far I don't see better options. You should bypass CSD to avoid those messages, and I don't think you really can.

  12. #12
    Registered User
    Join Date
    Oct 2010
    Posts
    15

    Re: Suppress unexpected MessageBox

    I want to perform requests after ending calls and internet sessions, sending SMS, MMS. This need for watch live balance from operator, because our operators made this option not free.

Similar Threads

  1. link in MessageBox
    By jhnns in forum Mobile Java General
    Replies: 1
    Last Post: 2010-01-27, 10:10
  2. Disable platform request messagebox
    By donny75 in forum Mobile Java Tools & SDKs
    Replies: 7
    Last Post: 2009-09-04, 13:16
  3. MessageBox with scrollbar
    By StasV in forum Symbian
    Replies: 5
    Last Post: 2008-07-04, 07:47
  4. MessageBox API (JSR 266) [inbox, outbox access]
    By stuaxo in forum Tools and SDK Feedback (Closed)
    Replies: 2
    Last Post: 2008-03-31, 13:50
  5. How can i get javax.microedition.messagebox
    By lovett0128 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2007-01-29, 09:27

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •