I tried both codes on multiple phones each, and it still fails to open
the camera. Every time, even after a reboot.
On Feb 9, 12:31 am, v bobbywink wrote:
> i change a little codes then test it in my phone. It works very well.
> Test it in your phone and if it don't work i have no idea
> Maybe u
package tinyClark.util.flashlite;
import java.util.List;
import android.app.Activity;
import android.hardware.Camera;
import android.hardware.Camera.CameraInfo;
import android.hardware.Camera.Parameters;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import and
The camera can only be used by one application at a time. You must release
it when you are done with it, so that you may use it again. The other
applications can still use the camera as your app force closes, which frees
up the camera.
Thanks
2012/2/8 v bobbywink
> So strange, can u post all co
So strange, can u post all code in this activity?
2012/2/8 Matt Clark
> Even using your code, in LogCat i get:
> open
> second open
> fail to open camera
> This happens even after rebooting the phone, however all other
> applications that use the camera still work.
>
> On Feb 7, 2:45 am, v bobby
Even using your code, in LogCat i get:
open
second open
fail to open camera
This happens even after rebooting the phone, however all other
applications that use the camera still work.
On Feb 7, 2:45 am, v bobbywink wrote:
> well, i think camera has crashed and in the condition u can't get
> camer
well, i think camera has crashed and in the condition u can't get
camera service. U must reboot phone.
when using hardware , u should be careful. u can open Camera in
onStart() and release Camera in onStop(). Can't open camera many times
in activity, when task finish u must release it .
sample cod
Anything?
On Feb 7, 12:14 am, Matt Clark wrote:
> Even as hundreds of other have made them, i am trying my hand at a
> flashlight app. I have the basic GUI and widget working and toggling,
> and i just attempted to implement the actual flash from the phone.
> I have found many places that this is
7 matches
Mail list logo