Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User kanishk_408's Avatar
    Join Date
    Jun 2009
    Posts
    8
    Is there a way to capture the camera shutter open event from the camera phones that have camera. The issue is once the camera shutter opens the app is either killed or backgrounded. Is there a way to prevent the app from getting killed /backgrounded or if the app is backgrounded , bring it to foreground ?

  2. #2
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    You cannot capture that specific event.

    If the application goes into the background, you might be able to detect that, by receiving a hideNotify() event (if you have a Canvas displayed), or by detecting that isShown() returns false for the current Displayable. Whether you are able to detect this depends on the device.

    Once in the background, you might (again, depending on device) be able to use Display.setCurrent() to bring your application back to the foreground.

    You should be aware that, if your application interferes with the normal operation of the device, it is likely to fail Java Verified testing (or similar requirements). This would limit the number of possible sales channels for your product.

    Graham.

  3. #3
    Registered User kanishk_408's Avatar
    Join Date
    Jun 2009
    Posts
    8
    Hi grahamhughes ,
    Thanks for replying,information provided by you is certainly useful.
    tc

  4. #4
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Quote Originally Posted by grahamhughes View Post
    You cannot capture that specific event.


    Graham.
    Hey Man,
    Are you sure that this event can not be captured?
    I have seen some games related to that.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    What games?

  6. #6
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Quote Originally Posted by grahamhughes View Post
    What games?
    Grahm thanks for the interest in the post,
    What I have seen,is that there was a game that was played using the camera,As soon as you will put the shutter of the camera down (if the game is already started),you can start to play the game using the camera movements,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  7. #7
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    The only games I have seen that use the camera are native Symbian games and BREW games. The classic example (certainly the first I saw) is "Mozzies" on the Siemens SX1 (the SX1 runs Series 60). There is a Nokia with a similar game (6680?).

    There are off-the-shelf libraries for using the camera to perform motion detection, to allow you to build motion-sensitive games without an accelerometer, such as GestureTek's EyeMobile.

    There may be devices that provide a keyPressed() event, but I don't know of any devices that do. The only other way the device could tell you would be through a system property; again, I don't know of any device that does this.

    Graham.

Similar Threads

  1. How to capture touch event in widget of S60 5th
    By torny10 in forum Symbian Web Runtime
    Replies: 3
    Last Post: 2010-01-26, 12:21
  2. How to capture star button (Maps) event on 6210 Navigator
    By juannoguera in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-02-01, 18:23
  3. Camera Capture + Active polling == my nightmare
    By x_ploit_x in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2007-12-06, 10:37
  4. Replies: 0
    Last Post: 2003-11-18, 21:41
  5. 7650: YUV422/420 capture from camera?
    By dipg in forum Symbian C++
    Replies: 0
    Last Post: 2002-08-09, 06:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved