Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: Groo Gadgets on August 23, 2012, 10:48:12 PM

Title: Handy Android tip - using the device back button
Post by: Groo Gadgets on August 23, 2012, 10:48:12 PM
Hey guys,

I just recently picked up a Nexus 7 for mobile development and was curious if it were possible to utilize the persistent "back button" on the device using PlayMaker.

I found out that Unity maps the Escape key to the back button on Android devices. So if you want to access the back button in your Android app all you have to do is use the "Get Key Down" action and point it to the Escape key.

http://answers.unity3d.com/questions/25535/android-back-button-event.html (http://answers.unity3d.com/questions/25535/android-back-button-event.html)

Nice to know that we don't require a custom action to get this working  :-)

Cheers,

Simon
Title: Re: Handy Android tip - using the device back button
Post by: Damian on August 25, 2012, 01:45:15 PM
I can confirm this works on Samsung Galaxy S/S3 to.
Title: Re: Handy Android tip - using the device back button
Post by: smiffy on August 29, 2012, 11:57:05 AM
Check the following out too, it covers resuming from an interrupt, ie when a phone call stops the game.

http://hutonggames.com/playmakerforum/index.php?topic=1591.0 (http://hutonggames.com/playmakerforum/index.php?topic=1591.0)
Title: Re: Handy Android tip - using the device back button
Post by: szomaza on February 17, 2015, 01:28:48 AM
First I thought it does not work on Samsung Galaxy 4S mini but than it worked, built onto device.

It just does not work when testing in Unity Remote.

Br,
szomaza
Title: Re: Handy Android tip - using the device back button
Post by: djaydino on April 23, 2015, 11:01:12 PM
i does not work on unity remote, but you can just press the escape key to have the same effect

Greetings,

Dino