Saturday, February 25, 2012

Re: [android-developers] Re: camera app FC/no FC dep. on startup method

On Sat, Feb 25, 2012 at 05:45:09AM -0800, gjs wrote:

> Add code / try catch block to check if camera connects OK. If not
> indicate to user camera is busy, exit and restart app.

No change. Keep in mind, this happens when exiting from the app.
AND, it *ONLY* happens if the app is run from the install "Open"
option, AND if the user pauses the app via the Home button, AND
if the user then returns to the app via the app icon (as opposed
to the Honeycomb active apps listing). Any other combination
doesn't force close on exit (i.e., exits normally, as shown both
by a normal exit and by logcat showing a clean exit).

I'm completely and utterly confused about a number of things here:

1) Why would the app only FC on exit with the above combination?
Why not FC when opened via the app icon and resumed via the icon?
Why not FC when opened either way and resumed either way (HC
active apps display or app icon)?

2) Why is the app behaving differently when paused/restarted with
the above combination (i.e., in all other cases, the camera is
closed on pause, and re-opened on resume); in that one case above,
the camera is not closed on pause, and is simply accessed again
when the app resumes.

Maybe there's some mysterious difference between these variables that
I don't know about, but it's driving me nuts. I'm just about ready
to scrap the existing code and start over. But, as one friend/developer
has suggested, it could even be a bug in the firmware on my A500....who
knows? I don't, that's for sure..... :-(

Thanks,
--jim

--
THE SCORE: ME: 2 CANCER: 0
73 DE N5IAL (/4) MiSTie #49997 < Running FreeBSD 7.0 >
spooky130u@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

"'Wrong' is one of those concepts that depends on witnesses."
--Catbert: Evil Director of Human Resources (Dilbert, 05Nov09)

Android Apps Listing at http://www.jstrack.org/barcodes.html

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment