Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

About background run in Android like PlayerLoop in IOS.

Discussion in 'Android' started by rockyameng, Jan 16, 2016.

  1. rockyameng

    rockyameng

    Joined:
    Oct 14, 2012
    Posts:
    4
    Now I need to implement the background run function in Android .In IOS ,I can use the function of PlayerLoop. But in Android I can't find any methods like PlayerLoop.

    I have done work like the following.

    1. Create new unity project.

    2. Export the google project.

    3. Add the start point to start android thread.

    4. In the thread, call UnitySendMessage to send message into unity3d.

    When the app in foreground, works well. But when I press the Home button, android thread still send message to Unity part. But now error logs report, like "W/ManagedEGLContext﹕ doTerminate failed: EGL count is 4 but managed count i" .

    Any suggestion? Thank you .
     
  2. rockyameng

    rockyameng

    Joined:
    Oct 14, 2012
    Posts:
    4
    any suggestion?
     
  3. rockyameng

    rockyameng

    Joined:
    Oct 14, 2012
    Posts:
    4
    Nobody need run application in background on Android?
     
  4. rockyameng

    rockyameng

    Joined:
    Oct 14, 2012
    Posts:
    4
    Still no answer. Unity team no response?
     
  5. hiimachicken

    hiimachicken

    Joined:
    Apr 25, 2014
    Posts:
    12