Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2014

    Unrelated app randomly coming to foreground during VoIP call on Asha

    During the call process, other apps that are running in the background on the phone are getting foreground notify events, so they're popping up. It doesn't happen every time and it doesn't happen at the same point in the call, but it happens regularly.

    For example, WhatsApp, when left in the background, will suddenly be in the foreground after the call starts. You can still hear the call, but you're looking at WhatsApp. I've been able to make it happen with LINE as well. Hitting the back hardware button returns you to MyApp.

    Here is a trace showing some debug on this issue and explained below (comments prefixed with: <<<<<<<<<<)

    According to the Java/J2me/Asha documentation:

    public boolean isShown()
    Checks if the Displayable is actually visible on the display. In order for a Displayable to be visible, all of the following must be true: the Display's MIDlet must be running in the foreground, theDisplayable must be the Display's current screen, and the Displayable must not be obscured by asystem screen. 
    true if the Displayable is currently visible
    Reiterating from the documentation, for this function to return the value TRUE, the Midlet (MyApp application) must be the foreground app, screen in question is set to be the current viewable screen, and its not obscured by anything. In the first portion of the log, you will notice that the MyApp Application remained the foreground application for the entire 30 seconds of testing (event 14:57:32.596).

    I then placed a second call, but with much different results.

    1. At event 14:57:54.54 we show the second call being disconnected.
    2. At event 14:57:54.138 we see the same dialer view object being reset to the current view (DialerView@15a8dbe).
    3. Again the thread shows initially this view is not active, but within one second, the view is now visible on the screen (event 14:57:55.215), and it remains in this state until sometime after event 14:57:58.490.
    4. All of a sudden, WhatsApp is now the active foreground app on the screen. You can tell this by event 14:57:59.526 – the isShown() function is now indicating that the MyApp Dialer View object is no longer visible on the screen (i.e. the function is returning false, instead of true). You will also notice that no other code of the MyApp Application is executing except the background thread testing to see if the Dialer view is still visible. We can verify this because no other events were logged by the MyApp application.

    Something in the Asha system seems to be determining that another application needs to be pushed into the foreground. Any suggestions on how to avoid this?

  2. #2
    Super Contributor
    Join Date
    Mar 2003

    Re: Unrelated app randomly coming to foreground during VoIP call on Asha

    You made a VoIP/SIP MIDlet on the Asha Software Platform, didn’t you? Have a double-checked the other VoIP apps and how they behave. In any case, this question is very specific, therefore: Did you open a support ticket for this as well, already?

Similar Threads

  1. Up coming Asha 502 compatiblity
    By kingc8 in forum General Development Questions
    Replies: 2
    Last Post: 2013-10-22, 11:57
  2. Replies: 5
    Last Post: 2010-08-30, 14:11
  3. application not coming foreground while calling
    By amit.mangal in forum Symbian
    Replies: 5
    Last Post: 2010-05-14, 08:48
  4. CAknTextQueryDialog closes when coming to foreground
    By bharath_hegde in forum Symbian
    Replies: 2
    Last Post: 2008-05-21, 16:53
  5. Replies: 2
    Last Post: 2006-02-23, 07:42

Posting Permissions

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