English 中文(简体)
can J2ME access camera(image capture) event from N73 device
原标题:

I am working on project where I need to catch the image capture event. It s for nokia N73 having platform S60 3rd edition. Is there any possible way using J2ME only (without using symbian).

Description: J2ME application running in background, on click of capturing image from camera J2ME application initiates and comes in front. Takes the captured image and transfers it to J2ME app and displays on screen.

if not possible using J2ME , Is there any possible way using symbian? can anyone provide tutorial or code snippet?

Thank you.

Regards, Rajiv

问题回答

Not possible to access the native camera from J2ME. You d need to get the user to start your app first, then access the camera from your app (using JSR 135, spec here, introduction and examples here). Then you can use the captured image however you wish.

HTH

The N73 in particular has a fairly large hardware limitation when you want to use the camera.

You need to have the user manually open the camera cover before you can use the camera.

This launches the native camera application included in S60.

The user then needs to close that application.

From that point on, J2ME can use the camera, via the mobile media API defined in JSR-135.

If the user reboots the phone, the camera cover needs to be re-opened before J2ME can use the camera again.

You may have better luck using J2ME and JSR-135 to capture images using the front camera on the N73.

I seriously doubt that J2ME would see the user pressing the camera key in javax.microedition.lcdui.Canvas.keyPressed();

JSR-135 doesn t really provide a system-wide camera capture event for J2ME.





相关问题
add text in http request string url

ok i made a midlet through which i can connect to server pages and get soem information as response. For example i made a midlet through which i acced url: http://example.com/?u=nepal&t=1 Now i ...

Do I have to do a setSize() on a Vector before using it?

Given private final Vector v = new Vector(); //instance variable the following 3 lines are in an instance method in the same class. 1. int length = v.capacity(); 2. int size = v.size(); ...

Is the situation with Java ME improving?

It seems to be the consensus that developing for Java ME is not as cross platform as you might expect, particularly compared to say java SE, but it is difficult to assess how the situation is evolving....

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

ClassFormatError: 56 while using hessian in j2me

I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone ...

热门标签