Greetings,
I am starting to get some feedback on the apps I posted to the market over the past week and have a few questions. One of my apps uses the MediaPlayer in combination with the MP_Complete event to play sound clips in sequence. This works fine on my HTC Vision running Cyanogenmod 7.1 and on other devices running different flavors of Android 2.2. The lone exception seems to be the Samsung Intercept from Sprint running some flavor of Android 2.2. On here, none of the clips play all the way through, and their ends are chopped off. I therefore added a delay to proceed each clip as to give the phone more time to finish playing, but that also does not work. Setting up a temporary timer to fire every 20 ms and check the playing state of the MP object also results in the same behavior. I'm sure that there is something on the Intercept which is causing this, but I am at a loss as to figuring out what is happening. Have any other B4A users had similar issues with the Intercept?
My second question has to do with acquiring a partial lock to keep the CPU running. I have scheduled a service to fire once per minute to check the active time, and depending on different conditions, make the phone do something. I did not initially add a partial wake lock as my Vision runs the program perfectly without one. But again, the Intercept users have informed me that the app stops working once the device goes to sleep. Therefore, I added a partial lock to keep the CPU active so as to allow the scheduled service to execute while my app is in memory. However, once the Intercept goes to sleep, the scheduled service never fires. I doubt that acquiring a full lock would be beneficial and is probably overkill for something which is designed to be run and interacted with in the background. i don't have an Intercept so have little but these reports to go on. As with the first question, has anyone encountered similar problems with this phone?
I am starting to get some feedback on the apps I posted to the market over the past week and have a few questions. One of my apps uses the MediaPlayer in combination with the MP_Complete event to play sound clips in sequence. This works fine on my HTC Vision running Cyanogenmod 7.1 and on other devices running different flavors of Android 2.2. The lone exception seems to be the Samsung Intercept from Sprint running some flavor of Android 2.2. On here, none of the clips play all the way through, and their ends are chopped off. I therefore added a delay to proceed each clip as to give the phone more time to finish playing, but that also does not work. Setting up a temporary timer to fire every 20 ms and check the playing state of the MP object also results in the same behavior. I'm sure that there is something on the Intercept which is causing this, but I am at a loss as to figuring out what is happening. Have any other B4A users had similar issues with the Intercept?
My second question has to do with acquiring a partial lock to keep the CPU running. I have scheduled a service to fire once per minute to check the active time, and depending on different conditions, make the phone do something. I did not initially add a partial wake lock as my Vision runs the program perfectly without one. But again, the Intercept users have informed me that the app stops working once the device goes to sleep. Therefore, I added a partial lock to keep the CPU active so as to allow the scheduled service to execute while my app is in memory. However, once the Intercept goes to sleep, the scheduled service never fires. I doubt that acquiring a full lock would be beneficial and is probably overkill for something which is designed to be run and interacted with in the background. i don't have an Intercept so have little but these reports to go on. As with the first question, has anyone encountered similar problems with this phone?