Hi Ashwin,
      I dont want to remove the camera application completely. I want
it to be enabled/disabled i mean like stop the camera process and
start the camera process so on. So i wanted to hide or show the icon
in home respectively when i want the app and when i don want. All
these i want it to be done in RUNTIME...

Thanks for ur reply Ashwin....



#define LOG_TAG "Example Service"
#include < utils/log.h >
#include < unistd.h >
int main(int argc, char **argv)
{
    LOGI("Example Service started");
    sleep(50);
/* stop camera process and remove camera icon from lanucher home */
// code here to do that
     LOGI("Camera process stopped through example service during
runtime ");


sleep(10);
/* start camera process and show camera icon from lanucher home */
// code here to do that
     LOGI("Camera process started through example service during
runtime ");


    }


On Jul 11, 6:24 pm, Ashwin Bihari <[email protected]> wrote:
> The camera icon is derived from the Camera.apk file sitting in
> System/apps in the filesystem. So if you don't want the Camera
> application, then change the build process not to build the Camera
> app, that'll be the cleanest thing. Disabling the CameraService will
> likely involve some changes to the framework..
>
> -- Ashwin
>
> On Mon, Jul 11, 2011 at 3:02 AM, Gopi <[email protected]> wrote:
> > Hi all,
>
> >       I want to remove the camera icon from the home and stop the
> > camera process during runtime from native init service. Like my
> > service ll start during the boot and ll run in background and atfer a
> > span of time i want to stop the camera process and remove the camera
> > icon during runtime thorugh service. My C file looks like
>
> > #define LOG_TAG "Example Service"
> > #include < utils/log.h >
> > #include < unistd.h >
> > int main(int argc, char **argv)
> > {
> >    LOGI("Example Service started");
> >    sleep(50);
> > /* stop camera process and remove camera icon from lanucher home */
> > // code here to do that
> >     LOGI("Camera process stopped through example service during
> > runtime ");
> >    }
>
> > Please help me or guide me ...
>
> > Thank you....
>
> > --
> > unsubscribe: [email protected]
> > website:http://groups.google.com/group/android-porting
>
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to