Android Question Want to take pictures in a service but cannot access Panel

Discussion in 'Android Questions' started by GvD, Apr 13, 2015.

  1. GvD

    GvD Member Licensed User

    Hi there,
    is it possible to take pictures in a service?
    I want to realize a time lapse camera but allow the mobile to sleep.
    I can't see a chance to call the camera without a panel...

    Thanks for help in advance
    Gerd
     
  2. derez

    derez Expert Licensed User

    The camera must have a panel, but you can have it in an activity module that starts by a command from a service, and close after taking the picture. The service will wake up at the required time, launch the activity, take picture and close until the next time.
     
    Peter Simpson and GvD like this.
  3. GvD

    GvD Member Licensed User

    Hmmm - ok thank you for your rapid answer!
    ... but with intervalltimes from 5 or 15s?
     
  4. GvD

    GvD Member Licensed User

    ok - i think i will take the PhoneAwake feature and dim the screen to 0
     
  5. derez

    derez Expert Licensed User

    If you don't want the panel to show (take the picture secretly...) it is sufficient for the camera to work to have only one pixel of the panel in the screen area.
     
    GvD and DonManfred like this.
  6. GvD

    GvD Member Licensed User

    Thank you for this good hint :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice