Hey,

I'm not sure as to what is going wrong exactly...but you might want to
check the launchMode of your activity/ies.
http://developer.android.com/guide/topics/manifest/activity-element.html#lmode


I remember I had a similar issue in the past (not with the camera though)
when I launched an app from the Market (where it shows the 'Open' and
'Uninstall' buttons), then pressed home, and started that same app from the
app drawer.

Hope it helps somehow.

Yuvi

On Sat, Feb 25, 2012 at 3:08 PM, Jim Graham <spooky1...@gmail.com> wrote:

> 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 >
> spooky1...@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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
YuviDroid
Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to