×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    21

    Camera Issue in N78

    Hi experts,

    I have made an camera application for N82 which is a Midp 2.0 device.
    the application takes a photo and store it in the rms.
    It is working properly in N82.
    But when i tested it in N78 which is Midp 2.1 device, the application is not working. when i press capture, the application is getting hanged.

    Please help me
    Rabeeh

  2. #2
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    113

    Re: Camera Issue in N78

    Hi..
    try to adjust the device profile MIDP 2.1
    by right clicking on your project --> properties --> platform
    --> device profile
    hope that help you

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    21

    Re: Camera Issue in N78

    Hi,

    Thankx for the reply. i tried that already. still its not working.

    here is my code

    mPlayer = Manager.createPlayer("capture://video");
    mPlayer.realize();
    mVideoControl = (VideoControl)mPlayer.getControl("VideoControl");
    raw = mVideoControl.getSnapshot("encoding=jpeg&width=320&height=320");
    mPlayer.close();
    mPlayer = null;
    mVideoControl = null;

    By this i am able to capture the image in N82, but not in N78.

    One More thing, will a program designed for Midp 2.0 will work in Midp 2.1 device?

    Please help
    Rabeeh
    Last edited by rabeehkm; 2008-11-19 at 10:18.

  4. #4
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    113

    Re: Camera Issue in N78

    this link will be useful for you
    http://developers.sun.com/mobility/m...icles/picture/
    this link contain source code,I developed application that access the mobile camera and take a snapshot using that source code, it work fine
    I hope that help u

  5. #5
    Registered User
    Join Date
    Nov 2008
    Location
    New Delhi
    Posts
    11

    Re: Camera Issue in N78

    Hi,

    same probelm also encountered with me in Nokia N78 and other MiDP 2.1 devices.

    In your code , you have used mPlayer.close() after capturing the image.

    use mPlayer.stop() instead of mPlayer.close().
    This will fix the problem.

    It is happening in all Midp 2.1 nokia devices like (N78, Nokia 6210, Nokia N96, Nokia N85, N79 etc.)


    ~Amardeep

  6. #6
    Regular Contributor
    Join Date
    Sep 2008
    Location
    Ahmedabad
    Posts
    254

    Re: Camera Issue in N78

    Hi,

    Are you performing both tasks i.e. capturing and storing the images in a single thread. If thats the case then perform them in different threads. It may be possible that your application is going into deadlock due to lack of resources.
    Sunil
    Mobile Application Developer

  7. #7
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Camera Issue in N78

    Hi,I also make a J2me program to invoke the camera of N78 to take a photo. I initialize and show the camera in a thread,capture the picture in another thread .Then the camera can play,when I capture the picture ,the sound of taking a photo is normal,but the flash light come late.The camera is still playing,the screen is not still,but the picture can not be captured immediately.After a while there is a warning"security Warning Allow application camera MiDlet to use Camera,Video player or audio application?".When I choose yes, the picture can be captured . How can I solve this problem? Thanks very much in advance.

  8. #8
    Registered User
    Join Date
    Nov 2008
    Location
    New Delhi
    Posts
    11

    Re: Camera Issue in N78

    did u try use mPlayer.stop() instead of mPlayer.close().

    It will definitely solve ur problem

    ~Amardeep

  9. #9
    Regular Contributor
    Join Date
    Jul 2008
    Location
    Faridabad(Delhi NCR)
    Posts
    343

    Re: Camera Issue in N78

    Stop ur player firstly then try to save it in rms
    Anshu Chauhan
    J2me Developer

  10. #10
    Registered User
    Join Date
    Nov 2008
    Posts
    2

    Smile Re: Camera Issue in N78

    It seem that it can't work.It still show the tips,but the time that capture the picture become short a little.Anyway,thanks very much .

Similar Threads

  1. Replies: 6
    Last Post: 2010-03-05, 04:49
  2. 6220c camera issue
    By rkmohanty in forum Symbian
    Replies: 1
    Last Post: 2009-03-12, 10:10
  3. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  4. N95 Camera issue
    By sandy_zeng in forum Symbian
    Replies: 13
    Last Post: 2007-09-08, 15:16
  5. Nokia 6131 Camera Issue
    By jurome in forum General Development Questions
    Replies: 4
    Last Post: 2007-03-14, 03:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×