User Tag List

Results 1 to 5 of 5

Thread: End of Application Not Triggered On Android

  1. #1
    Clicker Fusion 2.5 MacInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2016
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question End of Application Not Triggered On Android

    I have an End of Application event that is supposed to save the game when triggered. On windows it works, however on Android it's a totally different matter. When you hit the home button and swipe it to the left to terminate it after reopening it it seems the application did not save. I know the end of application event didn't trigger at all because hitting back does save. However closing it by swiping doesn't but on Windows it works flawlessly. I am attaching the source code in case it is an error in my part. Any assistance in this matter would be greatly appreciated.

    Sincerely,

    Microline Games

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    in android you have to uncheck disable default home button behavior and handle it using the android object, there is a condition to detect this key
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Wodjanoi's Avatar
    Join Date
    Jun 2015
    Location
    Germany
    Posts
    665
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Back button or home key+swipe will close your application very fast. When you press back button(or home key) the event "End of Application: save values to Ini" is active for a very short moment before your app closes and that's not enough time to save the values with Ini on most Android devices. You really need another solution here to save your values.

  4. #4
    Clicker Fusion 2.5 MacInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2016
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Wodjanoi View Post
    Back button or home key+swipe will close your application very fast. When you press back button(or home key) the event "End of Application: save values to Ini" is active for a very short moment before your app closes and that's not enough time to save the values with Ini on most Android devices. You really need another solution here to save your values.
    Any ideas on what the best solution would be to handle this? This is what i came up with so far but, it seems like I broke saving in the process As always i'm attaching the source code to help with debugging. Any assistance in this matter would be greatly appreciated.

    Sincerely,

    Microline Games

    Source Code: Battle Guppies.mfa

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Wodjanoi's Avatar
    Join Date
    Jun 2015
    Location
    Germany
    Posts
    665
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Alright, you save your values with back button and menu button long press at the moment. Do you want this?
    Repair the saving process: in frame 3 move the saving path for Windows and Android in line 4 and 8 to line 1 and 2 and add Start of Frame for both lines. Also right click the two groups and uncheck 'Active when frame starts'.

Similar Threads

  1. When animation is over event not being triggered
    By FateForWindows in forum Fusion 2.5
    Replies: 13
    Last Post: 17th July 2015, 10:13 PM
  2. Flickering values indicates that it's triggered?
    By Literswater in forum Fusion 2.5
    Replies: 4
    Last Post: 25th August 2014, 12:39 AM
  3. Android Exporter - Trouble Building an Android Application
    By Appsareawesome in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 19th February 2014, 06:48 PM
  4. Slowdown of triggered events
    By MattEsch in forum Extension Development
    Replies: 4
    Last Post: 26th July 2010, 09:08 PM
  5. Actions triggered after a set time
    By Arnax in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th January 2008, 08:55 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
  •