Hi feiweiss, Yes, that's what I want to do. Exclusive lock on the camera which can be only unlocked by user through a pin. But I realised that by doing a Camera.open() it holds on to the camera resourses and other applications cannot use it but Android releases the camera after a short while and this method is also battery draining.
I trying to find a better way to acheive it but couldn't find any methods yet. Is there a way to do this? What I want to do is similar to setting restrictions functions available in iPhone. In iPhone it is part of the OS, here I am trying to do the same thing but in a form of app. The user can still kill the application though. Nothing like what Filip has mentioned :) Thanks and Regards, Perumal On Aug 19, 12:12 am, feweiss <fewe...@gmail.com> wrote: > Well, it seems like your main issue is how to use and/or maintain an > exclusion lock on the camera without your application having an > activity in the foreground. Have you solved that? > > As for the "exit an application" (I still think that's the wrong way > to say it), the nice way would be to add a pending intent, which > displays a notification icon. This reminds the user the camera is > locked and provides a handy access to the unlock activity. In any > case, in order to unlock the camera, the user needs to start an > activity in your application that performs the unlock. Thinking of the > camera lock as a state of the application/device is much better IMO > than thinking that the application is "running". > > The other way is to force stop the application from the Manage > Applications control panel. -- 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