Beeper Bug? [SOLVED]
I've searched the Forum and read the help but nothing is working for me and after spending all day trying to get my app to work it's now time to ask for help.
Attached is a sample app that I've created which demonstrates the problem and I'd be grateful if anyone here is able to test it and see if they get the same results. Basically the beeper appears to stop working if called more than 30 times!
The actual app I've created counts down from a preset time to zero, any screen presses or motion resets the time and should the time start to get low then the phone warns the user by beeping. All has been working well and I've made several modifications as requested by the inteded user BUT, a problem that has been occuring is that the time has counted to zero with no audible warning. I've experimented today and found that it appears to be the audio library that might be at fault (however it's more usual that I'm actually doing something wrong ).
The sample app simply counts down from 15s, when it gets to 10s it starts to beep every other second and when the time is less than 5s it beeps twice per second. The value under the time shows how many times the beep sub has been called and every time it gets to 30 on my device the beep stops working even though it is still being called. I've tried declaring the beep object as a global rather than each time the sub is called and I've played with the threading library which is what I'm actually using in my app, but in the interests of keeping the sample as simple as possible I've left the threading stuff out.
Maybe the problem is with my device (an LG GT540 running 2.1) but I just don't know and I've come to the limit of my ability.
Any advice on what I've done wrong is as ever greatly appreciated.
Kind regards,
Randomcoder
I've searched the Forum and read the help but nothing is working for me and after spending all day trying to get my app to work it's now time to ask for help.
Attached is a sample app that I've created which demonstrates the problem and I'd be grateful if anyone here is able to test it and see if they get the same results. Basically the beeper appears to stop working if called more than 30 times!
The actual app I've created counts down from a preset time to zero, any screen presses or motion resets the time and should the time start to get low then the phone warns the user by beeping. All has been working well and I've made several modifications as requested by the inteded user BUT, a problem that has been occuring is that the time has counted to zero with no audible warning. I've experimented today and found that it appears to be the audio library that might be at fault (however it's more usual that I'm actually doing something wrong ).
The sample app simply counts down from 15s, when it gets to 10s it starts to beep every other second and when the time is less than 5s it beeps twice per second. The value under the time shows how many times the beep sub has been called and every time it gets to 30 on my device the beep stops working even though it is still being called. I've tried declaring the beep object as a global rather than each time the sub is called and I've played with the threading library which is what I'm actually using in my app, but in the interests of keeping the sample as simple as possible I've left the threading stuff out.
Maybe the problem is with my device (an LG GT540 running 2.1) but I just don't know and I've come to the limit of my ability.
Any advice on what I've done wrong is as ever greatly appreciated.
Kind regards,
Randomcoder
Attachments
Last edited: