Hi Ender,
endernafi wrote:Is it possible an app written in LiveCode to run in background, like a music player for example?
no, LiveCode does not support this!
endernafi wrote:And more important, is it possible the LiveCode apps to continue where they have been left off?
Yes, but need a bit of work
Save the last "state" of your app as a text file in the users documents folder when it closes
and read it back again when the app starts again.
Very simplistic example if you only want to lead the user to the card he last visited (in pseudocode

)
1. when the app starts:
Code: Select all
on preopenstack
put specialfolderpath("documents") & "/last_state.txt" into tLaststate
## No file?
## Then this is obviously the first start of the app ever
if there is not a file tLaststate then
exit openstack
end if
## File found, check where we have been the last time
## In this example I only save the number of the last card the user has visited
put url("file:" & tLaststate) into tTargetCard
go cd tTargetCard
end openstack
2. when app quits (closestack?)
Code: Select all
on closestack
put specialfolderpath("documents") & "/last_state.txt" into tLaststate
## Now save the current card number:
put the num of THIS cd into url("file:" & tLaststate)
end closestack
You decide what to save, like contents of fields, states of checkboxes/radiobuttons etc...
You get the picture
Best
Klaus