How do I capture Android Tablet Back Button

Get help using Construct 2

Post » Sat Aug 02, 2014 9:13 pm

On Android Tablets there is a "back" button.

This does not appear to be the same as the Browser Back Button.

Is there a way for me to register that the user has pressed the back button?

If so how?
B
37
S
9
G
5
Posts: 437
Reputation: 6,094

Post » Sun Aug 03, 2014 7:17 pm

anybody?
B
37
S
9
G
5
Posts: 437
Reputation: 6,094

Post » Sun Aug 03, 2014 7:31 pm

Search on Plugins (addon) Section on this forum, i think you'll find what you want.
B
8
Posts: 20
Reputation: 302

Post » Sun Aug 03, 2014 7:59 pm

@czar

The Browser->On back button pressed works for me on both a Samsung Ace (Android 2.3) and Samsung Galaxy Tab 3 (Android 4.1) with a game wrapped using PhoneGap, so I'm not sure why it's not working for you.

The manual also suggests it should work.

Manual wrote:On back button
Triggered when the user presses the device's 'Back' button. Note not all devices have this button (e.g. iOS devices only have a 'Home' button) and not all platforms support this trigger.


What actions are you trying to execute when the button is pressed? Maybe they are the bit that's not working. You could try just changing text on screen to test it.

It could also be an issue with whatever wrapper you are using, some things don't always work with some wrappers.
Vote for all the Construct 2 games on Steam Greenlight - Find them here
B
33
S
9
G
7
Posts: 450
Reputation: 6,778

Post » Sun Aug 03, 2014 10:27 pm

Thanks guys - it appears I am doing the right thing however, it looks like cocoonjs is handling the "back" button also. I think I will live with it for now and check the cocoon forum later.
B
37
S
9
G
5
Posts: 437
Reputation: 6,094

Post » Sun Aug 03, 2014 10:33 pm

@blinkn i followed up your plugin suggestion - BINGO! Thanks very much. :)
B
37
S
9
G
5
Posts: 437
Reputation: 6,094


Return to How do I....?

Who is online

Users browsing this forum: plinkie, Yahoo [Bot] and 19 guests