9
votes
2answers
5k views

How do you detect when a sound file has finished?

I am playing a sound file using this code inside a broadcast receiver activity: notification.sound = Uri.parse("android.resource://emad.app/raw/seven_chimes"); I would like to detect when this file ...
0
votes
2answers
290 views

Looping through editTexts to check values

I have one layout with 100 blank EditTexts, all named based on their row / column IDs (e.g. box0101, box0102 etc.). I then have another layout with 100 TextViews in exactly the same layout with one ...
2
votes
1answer
18k views

Implementing a while loop in android

First off, i'd like to apologise because i'm quite new to programming but i've been doing okay thanks to the various threads on stackoverflow. However, there's one small thing i can't understand and ...
0
votes
1answer
46 views

TTS play silence in a for-loop doesn`t work

I want to add a pause button to my TTS-app. I am trying to do this with a while-loop, which should playSIlence. It isn't working, but I can't find my mistake. my boolean: boolean pausegedrückt; ...
0
votes
1answer
815 views

Handler/Runnable not working with loop

I am trying to get my TextView to update in a separate thread so that it doesn't slow down my UI. It works, but when I add in a while loop to control it, it hangs the program in a black screen. Code: ...
0
votes
1answer
127 views

wait to trigger action

I am looking to trigger a while loop, but only after the user selects an option. For some reason now, it is automatically blowing through the entire block of code even before the user picks an ...