Two issues with the Samsung Intercept

Steve

Member
Licensed User
Longtime User
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?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
About the first issue. Basic4android uses the native media player to play the sound clips. If there is an issue with Samsung Intercept then it should also affect applications written with Java. Try searching google for this issue.

Do you want your service to always run each minute? It will consume a lot of battery.
 
Upvote 0

Steve

Member
Licensed User
Longtime User
Thanks, Erel. I will see if any core Java issues exist for the first issue. Regarding the service problem, would something which just runs a quick check of the time once a minute really consume a lot of battery? I haven't noticed any significant difference in battery performance on my G2, but I do also understand that my device is one amongst hundreds. I can certainly do more work re the service scheduling, but it will be a moot point if I can't cause the scheduled service to execute once these devices go to sleep.

Thanks,
Steve
 
Upvote 0
Top