How do I make an Android app work in background?

Get help using Construct 2

Post » Sun Apr 10, 2016 10:12 am

Hi, Scirra forum users,
I'm wondering how to make an Android app to work in background. I need to constantly measure accelerometer and tilt (orientation) and play sounds.

Is that possible? If so, how?
B
32
S
7
G
4
Posts: 398
Reputation: 4,591

Post » Sun Apr 10, 2016 10:24 am

@grigrizljac - This isn't possible according to @Ashley here: https://www.scirra.com/forum/how-do-i-run-the-game-in-background-crosswalk_t122089 but I do know that in the Audio Plugin Properties, there is an option to play music in background.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » Sun Apr 10, 2016 11:17 am

chadorireborn wrote:@grigrizljac - This isn't possible according to @Ashley here: https://www.scirra.com/forum/how-do-i-run-the-game-in-background-crosswalk_t122089 but I do know that in the Audio Plugin Properties, there is an option to play music in background.

Thanks for the info. Yeah, Audio allows that, but I'd need to run the events (compare acc/orientation, if it's xx, play audio).
B
32
S
7
G
4
Posts: 398
Reputation: 4,591

Post » Sun Apr 10, 2016 12:06 pm

@grigrizljac - Sadly, HTML5 doesn't have enough permission to run on background while the application is closed.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857


Return to How do I....?

Who is online

Users browsing this forum: Euduardo, Kin, mikehive, ratboy3, tinhofiel and 35 guests