×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    7

    Question How To Access Nokia 3220 Camera?

    I find several source code about access MMAPI camera, but when I download it to my 3220, it does not works.

    For example, the "Snapper" in Sun java, I open it by using emulator 60 concept, it works. but using 40 . it does not work..

    I am current implementing a project. want to access 3220 camera. does anyone can help me?

    Thanks

  2. #2
    Registered User
    Join Date
    Feb 2006
    Posts
    1

    Re: How To Access Nokia 3220 Camera?

    Hi,
    I have the same problem. If anybody is using the mmapi with the 3220 please let us know the working firmware version.
    Regards,
    Fabian

  3. #3
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: How To Access Nokia 3220 Camera?

    Series 40 2.0 devices don't allow accessing the camera. This behavior is being added on the 3rd. Edition devices.

    Daniel

  4. #4
    Regular Contributor
    Join Date
    Jul 2005
    Location
    Omaha, US
    Posts
    129

    Re: How To Access Nokia 3220 Camera?

    To access the camera your device must support JSR 135 (multimedia api's). I dont think you will get it in series 40 2nd edition devices.

  5. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    16

    Camera interface for series 60

    hi there
    does anyone know whether nokia provide interfce to access camera on any of the series 60 mobile phones?

  6. #6
    Regular Contributor
    Join Date
    Jul 2005
    Location
    Omaha, US
    Posts
    129

    Re: How To Access Nokia 3220 Camera?

    Yes it is provided in all series 60, MIDP 2 phones.

  7. #7
    Registered User
    Join Date
    Feb 2006
    Posts
    16

    Re: How To Access Nokia 3220 Camera?

    I am looking for 'C' or 'JAVA' interface (code) that we can use to access the camera of the mobile fone, if yes from where i can get that piece of code?

  8. #8
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: How To Access Nokia 3220 Camera?

    Forum Nokia - Camera MIDlet: A Mobile Media API Example
    http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html
    Juarez Alvares Barbosa Junior - Brazil

  9. #9
    Registered User
    Join Date
    Feb 2006
    Posts
    16

    Re: How To Access Nokia 3220 Camera?

    Thanx man thats great. Can i use this code on any of series 60 or 40 mobile fones?

  10. #10
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: How To Access Nokia 3220 Camera?

    Hello there,

    Yes, I have a S60 device (Nokia 6681) and it works. A friend of mine told me that this same MIDlet works on its Series 40 (Nokia 322) but I haven't tested it myself using this phone.
    Juarez Alvares Barbosa Junior - Brazil

  11. #11
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: How To Access Nokia 3220 Camera?

    The only S40 phones that have camera access are the 3rd. edition ones.

    Please check "Series 40 Platform FAQ v. 2.0, section 2.1". For a list of 3rd. edition S40 phones, go to http://forum.nokia.com/devices

    Daniel

  12. #12
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Unhappy Re: How To Access Nokia 3220 Camera?

    Hi Daniel,

    I'm going to confirm the 3220 test once again with my friend but I think you're right as per the FAQ. I've just downloaded the FAQ and the information is there...in this case, my friend may have misundertood my question or overlooked something...



    BR,
    Juarez Alvares Barbosa Junior - Brazil

  13. #13
    Registered User
    Join Date
    Apr 2003
    Posts
    25

    Re: How To Access Nokia 3220 Camera?

    Quote Originally Posted by dcrocha
    The only S40 phones that have camera access are the 3rd. edition ones.

    Please check "Series 40 Platform FAQ v. 2.0, section 2.1". For a list of 3rd. edition S40 phones, go to http://forum.nokia.com/devices

    Daniel
    And not all the Series 40 3rd edition phones, either. I have personally checked both the 6111 and the 6270, and neither support video capture via MMAPI.

  14. #14
    Registered User
    Join Date
    Feb 2006
    Posts
    16

    Re: How To Access Nokia 3220 Camera?

    hi juarezjunior

    i have checked that pdf document about camera access, it returns the image in PNG format, can i return that same image in raw data format e.g rgb888 or something like that?

  15. #15
    Registered User
    Join Date
    Apr 2003
    Posts
    25

    Re: How To Access Nokia 3220 Camera?

    In general, no, not directly - you're stuck with the format that the camera returns. Some cameras allow you to choose from among several formats (check the system property "video.snapshot.encodings"), however they're all image formats - PNG, JPEG or BMP, in the cases that I've seen.

    What you can do is convert the raw byte stream to an Image, and then access the raw RGB data from there:
    Code:
    byte[] rawBytes = videoControl.getSnapshot();
    Image myImage = Image.createImage(rawBytes, 0, rawBytes.length);
    int[] rowData = new int[myImage.getWidth()];
    myImage.getRGB(rowData, 0, myImage.getWidth(), 0, rowNum, myImage.getWidth(), 1);
    This will get you the row data in rgb888 form as an array of integers. See the javadoc on Image.getRGB for a better description

Posting Permissions

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