Hi there,
I tested several methods to check whether the user pressed the home key and none worked.
I used a Nexus 4 with Android 5.0
void OnApplicationPause(bool paused) {
if (paused) {
Debug.Log(“This is a test”);
}
}
void OnApplicationQuit() {
Debug.Log(“This is a test”);
}
void Update () {
if (Input.GetKeyDown(KeyCode.Menu)) {
Debug.Log(“This is a test”);
}
}
void Update () {
if (Input.GetKey (KeyCode.Home)) {
Debug.Log(“This is a test”);
}
}
The script is attached to the camera.