1. Mac Morrison's Avatar
    So I've ported my game to android with realtive ease (minus the financial pain of the xamarin license)

    but I've one big issue - app resuming
    how have people dealt with this - its one setting on windows phone (and i believe it works the same on iOS - not done that port yet)
    but on android it seems to start from scratch every time you navigate from the app.

    mac.
    01-30-2014 06:03 AM
  2. peterdroid's Avatar
    you mean when you resume game.. the game always start from start ?
    first u need check this image
    xby45-1-.png
    also check this link
    Pausing and Resuming an Activity | Android Developers

    regards, Peter
    01-30-2014 11:01 AM
  3. Mac Morrison's Avatar
    you mean when you resume game.. the game always start from start ?
    first u need check this image
    Click image for larger version. 

Name:	xBY45[1].png 
Views:	1 
Size:	80.7 KB 
ID:	55807
    also check this link
    Pausing and Resuming an Activity | Android Developers

    regards, Peter
    yes ive been looking slightly baffled at these diagrams and tutorials
    but was rather hoping for a 'magic bullet'
    that doesn't require me to serialise over 100 data structures.
    01-30-2014 11:22 AM
  4. peterdroid's Avatar
    yes ive been looking slightly baffled at these diagrams and tutorials
    but was rather hoping for a 'magic bullet'
    that doesn't require me to serialise over 100 data structures.
    You'll need to overwrite [CODE]onPause()[/CODE], [CODE]onResume()[/CODE]. with code to save and restore your game when your app loses focus.
    check this link android - onPause/onResume activity issues - Stack Overflow
    and than this Saving Activity state in Android - Stack Overflow
    01-30-2014 11:36 AM

Similar Threads

  1. Replies: 5
    Last Post: 06-03-2014, 07:09 AM
  2. Migrating Windows Phone 8 app to Windows Tablet app
    By kathir velu in forum Developers Corner
    Replies: 3
    Last Post: 01-30-2014, 06:17 PM
  3. Never thought to add folders to the favorites bar
    By HeyCori in forum Windows RT
    Replies: 1
    Last Post: 01-30-2014, 01:02 AM
  4. Question: any app to lock messages
    By venkatesrockz in forum Nokia Lumia 520
    Replies: 1
    Last Post: 01-29-2014, 09:53 PM
LINK TO POST COPIED TO CLIPBOARD