My .aia: KiDi.aia (1.0 MB) . Now the Problem is that if I OffSoundSwitch off, after that I go to the Screen2. On the Screen2, if I press the Back Button or the Back Pressed, I reach to the Screen3. But on Screen3, OffSoundSwitch is off but then also the sound is coming. So, I want that if the OffSoundSwitch is off and then I switch between the screens and then if I am on the Screen3, then also OffSoundSwitch stay off and also no sound come..
I edited it. Please check it again.
Please Help!!!
Please be patient and stop spamming.
Okay but please solve the problem today. It is a request.
Always after starting the app, should the sound be turned on? Or maybe after turning off the sound, the app should remember it and turn off the sound the next time the app is started?
Can you write the code for that. I am so confused.
Why do you use two switches to turn the sound on and off?
To display two different images (OnSoundImage and OffSoundImage).
Lifecycle extension is also not needed. The player component has a "PlayOnlyInForeground" option which does the same.
Should background sound be heard on all screens?
You must remember that the screens in ai2 behave like separate apps. If you want to kill sound after the app sleeps, it won't be heard on other screens either.
You probably write that now it is audible. Yes, but only in companion. Do not be influenced by the app's operation in companion, because the operation of the companion has many differences compared to the operation of the installed APK. Try to test your app after compilation as well.
Try it:
KiDi (1).aia (1.0 MB)
Thanks for your help, support and time and explanation also. It worked.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.