Search Unity

Intercepting Device Return and Home

Discussion in 'Android' started by George S, Sep 22, 2010.

  1. George S

    George S

    Joined:
    Jul 28, 2009
    Posts:
    54
    Is there a way to intercept and use the Return and Home device buttons for a Unity application?

    That would also imply the Unity application would need to rely on their own exit functionality. A recipe for disaster making me think it is not possible.
     
  2. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    904
    I don't know about Home yet, but see here.
     
  3. eriQue

    eriQue

    Unity Technologies

    Joined:
    May 25, 2010
    Posts:
    595
    IIRC the HOME button is 'hard-wired' to take you to the 'desktop' of the device. The application will remain in memory, but in the background and should not consume any cpu (pretty much like what happens when you receive a phone call while the app is running).
    Please note that the app can be killed at any time while suspended, for example if the device is running low on memory.
     
  4. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    Or if a task killer visits it which you could take as much more granted than the OS dropping it due to memory