playMaker

Author Topic: Handy Android tip - using the device back button  (Read 11389 times)

Groo Gadgets

  • Beta Group
  • Full Member
  • *
  • Posts: 175
Handy Android tip - using the device back button
« 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

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

Cheers,

Simon

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: Handy Android tip - using the device back button
« Reply #1 on: August 25, 2012, 01:45:15 PM »
I can confirm this works on Samsung Galaxy S/S3 to.

smiffy

  • Junior Playmaker
  • **
  • Posts: 54
Re: Handy Android tip - using the device back button
« Reply #2 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

szomaza

  • Sr. Member
  • ****
  • Posts: 253
Re: Handy Android tip - using the device back button
« Reply #3 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
« Last Edit: February 17, 2015, 02:25:24 AM by szomaza »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Handy Android tip - using the device back button
« Reply #4 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