android - Activity life cycle creating,starting and running procedure -


if first activity image, , second activity song , calculator. if start second activity , make sleep on first activity 5000ms , kill it... sound play while first activity's image on screen? , calculator during sleep period ?

no. if "sleep" first activity, assuming talking ui thread , not background thread, whole ui sleep time...meaning second activity won't started yet , song won't play.

what put in 1 activity , put image , calculator in same position, or wherever want in layout, , hide calculator beginning in xml

 android:visibility="invisible" // or gone depending on need 

then can change visibility of both views when need. don't know want don't know if solution suitable.

you putting song in service


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

node.js - Node - Passport Auth - Authed Post Route hangs on form submission -

Does Firefox offer AppleScript support to get URL of windows? -