User Tag List

Results 1 to 8 of 8

Thread: How can I detect pressed on the Home button?

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Question How can I detect pressed on the Home button?

    Can I detect to pressed on the Home button?
    "End of Application" condition worked when pressed the Back button, but it doesn't worked when pressed on the Home button.
    (e.g. save score when pressed the Back button or the Home button.)

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Hi there ASD, the application ends when you press the home button. You can make a condition like this:


    so save if user ends application.

    le sparckman

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Sparckman, "End of Application" condition was triggered by pressed on the Back button. However, it not triggered if pressed on the Home button.

    android_home_btn.jpg

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    hmm let me try it out, what are you using to save? just an ini file?

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Yes I'm using INI.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    927
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    if you allow your app to keep running in the background, it shouldn't be necessary to save when going to background since the app will still be running and keeping the score when they return.

    however, i am sure a "going to background" condition would be useful in some cases, what we do have is a "app returning from pause" condition on the android+ object.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Try this method, it seems to work fine even if you exit the app with the home button.
    Just posted this example.
    http://community.clickteam.com/threads/92425-android-auto-save-value-example

  8. #8
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,755
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Thanks for info! Sparckman and SoftWarewolf!
    I forgot "End application when not in foreground" option.

Similar Threads

  1. Home Button closes app completely
    By gamer123 in forum Android Export Module 2.5
    Replies: 4
    Last Post: 9th March 2015, 05:14 PM
  2. Suggestion for pausing the game when the Home button is pressed?
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 23rd January 2012, 02:48 PM
  3. Home button support?
    By mobichan in forum XNA Export Module Version 2.0
    Replies: 1
    Last Post: 2nd December 2011, 08:02 AM
  4. How do i detect if Prt Sc has been pressed ?
    By Spryz in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th November 2009, 01:53 AM
  5. Detect if Alt key is pressed?
    By Joeyotrevor in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th May 2008, 10:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •