ICAMERA & Slow App Start -- Problems with a non-standard application | developer.brewmp.com ICAMERA & Slow App Start -- Problems with a non-standard application | developer.brewmp.com

Developer

ICAMERA & Slow App Start -- Problems with a non-standard application

Forums:

Hey all,

I'm trying to accomplish some relatively unusual things with BREW, and I've run into a couple problems. What complicates things is that I'm developing on the Samsung SPH-M610, which does not have a handset data sheet, although I am able to load and run BREW applications on it just fine.

Problem 1:
My first question is whether the ICamera API is available on the phone or not. Both the calls ISHELL_CreateInstance() and ICAMERA_Preview() return success, and I get a callback with CAM_STATUS_START, to let me know the camera has started. However, I never get another callback to let me know that frames are available, What confuses me is that the phone uses Qcamera as its native camera app, which I understand should mean that ICamera is available on the phone as well. Can anyone tell me what the relationship between ICamera and Qcamera is anyhow?

BTW
I've already tried to putting a delay between when the ICamera instance is created and when it used, but it hasn't helped. And if I try to be sneaky and just call ICAMERA_GetFrame() without receiving the callback first, the phone crashes. Also, I was able to get this code to work on another phone without modification, so I know it's mostly right.

Problem 2:
As a work around, I've been starting the native camera application and "scripting" it by passing it key events, and that's been pretty functional. The problem is that there is often a weird delay before the native camera app starts up. It varies quite a bit, but sometimes it can take up to 20 seconds to start. The reason I call the delay weird is because if the phone is plugged into a charger or a PC, there is no delay, and the app consistently starts up in like 3 seconds. What gives?

I've tried everything I can think of to deal with these issues. Any help that anyone can provide would be really appreciated!