Camera Application Error.. Please help

All your problems with Audio, Video and Images.

Camera Application Error.. Please help

Postby naveen » Tue Apr 06, 2010 8:23 am

CameraApplication.java
package myapp.android;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

import android.app.Activity;
import android.hardware.Camera;
import android.hardware.Camera.PictureCallback;
import android.hardware.Camera.ShutterCallback;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.FrameLayout;

public class CameraApplication extends Activity {
private static final String TAG = "CameraDemo";
Camera camera;
Preview preview;
Button buttonClick;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

preview = new Preview(this);
((FrameLayout) findViewById(R.id.preview)).addView(preview);

buttonClick = (Button) findViewById(R.id.buttonClick);
buttonClick.setOnClickListener( new OnClickListener() {
public void onClick(View v) {
//preview.parameters.setPictureSize(100,100);
// camera.setParameters(preview.parameters);
preview.camera.takePicture(shutterCallback, rawCallback, jpegCallback);
}
});

Log.d(TAG, "onCreate'd");
}


ShutterCallback shutterCallback = new ShutterCallback() {
public void onShutter() {
Log.d(TAG, "onShutter'd");
}
};

/** Handles data for raw picture */
PictureCallback rawCallback = new PictureCallback() {
public void onPictureTaken(byte[] data, Camera camera) {
Log.d(TAG, "onPictureTaken - raw");
}
};

/** Handles data for jpeg picture */
PictureCallback jpegCallback = new PictureCallback() {
public void onPictureTaken(byte[] data, Camera camera) {
FileOutputStream outStream = null;
try {
// write to local sandbox file system
// outStream = CameraDemo.this.openFileOutput(String.format("%d.jpg", System.currentTimeMillis()), 0);
// Or write to sdcard
outStream = new FileOutputStream(String.format("/sdcard/%d.jpg", System.currentTimeMillis()));
outStream.write(data);
outStream.close();
Log.d(TAG, "onPictureTaken - wrote bytes: " + data.length);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
}
Log.d(TAG, "onPictureTaken - jpeg");
}
};

}


Preview.java
package myapp.android;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.hardware.Camera;
import android.hardware.Camera.PreviewCallback;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.hardware.Camera.Parameters;


class Preview extends SurfaceView implements SurfaceHolder.Callback {
private static final String TAG = "Preview";

SurfaceHolder mHolder;
public Camera camera;
// public Camera.Parameters parameters = camera.getParameters();

Preview(Context context) {
super(context);

// Install a SurfaceHolder.Callback so we get notified when the
// underlying surface is created and destroyed.
mHolder = getHolder();
mHolder.addCallback(this);
mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
}

public void surfaceCreated(SurfaceHolder holder) {
// The Surface has been created, acquire the camera and tell it where
// to draw.
camera = Camera.open();
try {
camera.setPreviewDisplay(holder);


camera.setPreviewCallback(new PreviewCallback() {

public void onPreviewFrame(byte[] data, Camera arg1) {
FileOutputStream outStream = null;
try {
outStream = new FileOutputStream(String.format("/sdcard/%d.jpg", System.currentTimeMillis()));
outStream.write(data);
outStream.close();
Log.d(TAG, "onPreviewFrame - wrote bytes: " + data.length);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
}
Preview.this.invalidate();
}
});
} catch (IOException e) {
e.printStackTrace();
}
}

public void surfaceDestroyed(SurfaceHolder holder) {
// Surface will be destroyed when we return, so stop the preview.
// Because the CameraDevice object is not a shared resource, it's very
// important to release it when the activity is paused.
camera.stopPreview();
camera = null;
}

public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
// Now that the size is known, set up the camera parameters and begin
// the preview.
Parameters parameters = camera.getParameters();
parameters.setPreviewSize(w, h);
// parameters.setPictureSize(100,100); Camera works absolutely fine if I comment this line of code
camera.setParameters(parameters);
camera.startPreview();
}

@Override
public void draw(Canvas canvas) {
super.draw(canvas);
Paint p= new Paint(Color.RED);
Log.d(TAG,"draw");
canvas.drawText("PREVIEW", canvas.getWidth()/2, canvas.getHeight()/2, p );
}
}


Please see the Code above and please help me in setting the PictureSize.
// parameters.setPictureSize(100,100); Camera works absolutely fine if I comment this line of code
..
then how can i adjust the SIze of the Picture taken by the camera ???
Please ! Help!!!!
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

Top

Postby vik » Tue Apr 06, 2010 8:52 am

use CROP

Code: Select all
Intent("com.android.camera.action.CROP")
User avatar
vik
Senior Developer
Senior Developer
 
Posts: 141
Joined: Wed Sep 09, 2009 7:32 am

Setting Picture Size

Postby naveen » Tue Apr 06, 2010 9:09 am

But why isnt the below line working?

parameters.setPictureSize(100,100);

??
whats wrong with this line of code.I think it is perfectly fine to set the size of a picture using setPictureSize method.?
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

Setting Camera Size

Postby naveen » Tue Apr 06, 2010 9:15 am

If i remove the
parameters.setPictureSize from my code.. the application runs without any error.
why is it so?
whats wrong with setting the picture size using setPictureSize method?

NOTE: Currently I am Working on Android Emulator
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

Postby vik » Tue Apr 06, 2010 9:34 am

what does your logcat show??? cause i tried with and without and no error was thrown
User avatar
vik
Senior Developer
Senior Developer
 
Posts: 141
Joined: Wed Sep 09, 2009 7:32 am

Setting Picture Size Error

Postby naveen » Tue Apr 06, 2010 10:08 am

Hi..
You mean, its working fine at your side?
Are u running it on an emulator ?

and really sorry But since i am new to android application development .. can u please tell me where can i find these log files?

Thanks a lot !
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

Top

Postby vik » Tue Apr 06, 2010 10:14 am

in windows-> show view -> other -> logcat
User avatar
vik
Senior Developer
Senior Developer
 
Posts: 141
Joined: Wed Sep 09, 2009 7:32 am

Setting Picture Size

Postby naveen » Tue Apr 06, 2010 10:20 am

cant find SHOW VIEW in WINDOWS...

searched for logcat in C directory but could not find it.. :(

?
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

Postby vik » Tue Apr 06, 2010 10:22 am

in eclipse menu
User avatar
vik
Senior Developer
Senior Developer
 
Posts: 141
Joined: Wed Sep 09, 2009 7:32 am

Setting Picture Size..

Postby naveen » Tue Apr 06, 2010 10:25 am

That was really foolish on my part... really sorry..
thanks a lot for all the help..

I am running it again and will be posting the LOGCAT in a while

Thanks
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

setting picture size

Postby naveen » Tue Apr 06, 2010 10:27 am

04-06 14:54:23.627: DEBUG/dalvikvm(58): threadid=15: bogus mon 1+0>0; adjusting
04-06 14:54:26.838: DEBUG/AndroidRuntime(593): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
04-06 14:54:26.857: DEBUG/AndroidRuntime(593): CheckJNI is ON
04-06 14:54:27.567: DEBUG/AndroidRuntime(593): --- registering native functions ---
04-06 14:54:28.551: DEBUG/ddm-heap(593): Got feature list request
04-06 14:54:32.048: INFO/ActivityManager(58): Starting activity: Intent { flg=0x10000000 cmp=myapp.android/.CameraApplication }
04-06 14:54:32.216: DEBUG/AndroidRuntime(593): Shutting down VM
04-06 14:54:32.216: DEBUG/dalvikvm(593): DestroyJavaVM waiting for non-daemon threads to exit
04-06 14:54:32.747: DEBUG/dalvikvm(593): DestroyJavaVM shutting VM down
04-06 14:54:32.762: DEBUG/dalvikvm(593): HeapWorker thread shutting down
04-06 14:54:32.786: DEBUG/dalvikvm(593): HeapWorker thread has shut down
04-06 14:54:32.786: DEBUG/jdwp(593): JDWP shutting down net...
04-06 14:54:32.786: INFO/dalvikvm(593): Debugger has detached; object registry had 1 entries
04-06 14:54:32.997: DEBUG/dalvikvm(593): VM cleaning up
04-06 14:54:33.248: DEBUG/dalvikvm(593): LinearAlloc 0x0 used 638596 of 5242880 (12%)
04-06 14:54:33.537: INFO/ActivityManager(58): Start proc myapp.android for activity myapp.android/.CameraApplication: pid=601 uid=10041 gids={1006}
04-06 14:54:33.967: DEBUG/ddm-heap(601): Got feature list request
04-06 14:54:35.380: DEBUG/CameraDemo(601): onCreate'd
04-06 14:54:36.227: DEBUG/CameraService(31): CameraService::connect E (pid 601, client 0xe138)
04-06 14:54:36.237: DEBUG/CameraService(31): Client::Client E (pid 601)
04-06 14:54:36.248: DEBUG/CameraHardwareStub(31): initHeapLocked: preview size=176x144
04-06 14:54:36.277: ERROR/MediaPlayerService(31): error: -2
04-06 14:54:36.286: ERROR/MediaPlayer(31): Unable to to create media player
04-06 14:54:36.286: ERROR/CameraService(31): Failed to load CameraService sounds.
04-06 14:54:36.298: ERROR/MediaPlayerService(31): error: -2
04-06 14:54:36.307: ERROR/MediaPlayer(31): Unable to to create media player
04-06 14:54:36.318: ERROR/CameraService(31): Failed to load CameraService sounds.
04-06 14:54:36.318: DEBUG/CameraService(31): Client::Client X (pid 601)
04-06 14:54:36.318: DEBUG/CameraService(31): CameraService::connect X
04-06 14:54:36.338: DEBUG/CameraService(31): setPreviewDisplay(0xd840) (pid 601)
04-06 14:54:36.367: DEBUG/CameraService(31): getParameters(picture-format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-rate=15;preview-size=176x144)
04-06 14:54:36.386: DEBUG/CameraService(31): setParameters(preview-size=320x349;preview-format=yuv422sp;picture-size=100x100;picture-format=jpeg;preview-frame-rate=15)
04-06 14:54:36.408: ERROR/CameraHardwareStub(31): Still picture size must be size of canned JPEG (213x350)
04-06 14:54:36.458: DEBUG/AndroidRuntime(601): Shutting down VM
04-06 14:54:36.467: WARN/dalvikvm(601): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
04-06 14:54:36.477: ERROR/AndroidRuntime(601): Uncaught handler: thread main exiting due to uncaught exception
04-06 14:54:36.686: ERROR/AndroidRuntime(601): java.lang.RuntimeException: setParameters failed
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.hardware.Camera.native_setParameters(Native Method)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.hardware.Camera.setParameters(Camera.java:619)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at myapp.android.Preview.surfaceChanged(Preview.java:81)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.SurfaceView.updateWindow(SurfaceView.java:460)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:287)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.View.draw(View.java:6538)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.widget.FrameLayout.draw(FrameLayout.java:352)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.View.draw(View.java:6538)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.widget.FrameLayout.draw(FrameLayout.java:352)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1830)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewRoot.draw(ViewRoot.java:1349)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.os.Looper.loop(Looper.java:123)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 14:54:36.686: ERROR/AndroidRuntime(601): at dalvik.system.NativeStart.main(Native Method)
04-06 14:54:36.748: INFO/Process(58): Sending signal. PID: 601 SIG: 3
04-06 14:54:36.748: INFO/dalvikvm(601): threadid=7: reacting to signal 3
04-06 14:54:36.816: INFO/dalvikvm(601): Wrote stack trace to '/data/anr/traces.txt'
04-06 14:54:42.216: WARN/ActivityManager(58): Launch timeout has expired, giving up wake lock!
04-06 14:54:44.273: WARN/ActivityManager(58): Activity idle timeout for HistoryRecord{43d37fa0 myapp.android/.CameraApplication}
04-06 14:54:49.418: DEBUG/dalvikvm(105): GC freed 140 objects / 6088 bytes in 131ms

i again ran the application with the setPictureSize included in the code

THIS IS WHAT THE LOGCAT SHOWS...
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

setting picture Size

Postby naveen » Tue Apr 06, 2010 10:37 am

after removing that setPicture Size from the code...
the applications runs perfectly well and the LOGCAT IS SHOWN BELOW":

04-06 15:04:36.607: DEBUG/AndroidRuntime(651): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
04-06 15:04:36.617: DEBUG/AndroidRuntime(651): CheckJNI is ON
04-06 15:04:37.306: DEBUG/AndroidRuntime(651): --- registering native functions ---
04-06 15:04:38.217: DEBUG/ddm-heap(651): Got feature list request
04-06 15:04:39.446: INFO/ActivityManager(58): Starting activity: Intent { flg=0x10000000 cmp=myapp.android/.CameraApplication }
04-06 15:04:39.537: DEBUG/AndroidRuntime(651): Shutting down VM
04-06 15:04:39.537: DEBUG/dalvikvm(651): DestroyJavaVM waiting for non-daemon threads to exit
04-06 15:04:39.577: DEBUG/dalvikvm(651): DestroyJavaVM shutting VM down
04-06 15:04:39.577: DEBUG/dalvikvm(651): HeapWorker thread shutting down
04-06 15:04:39.588: DEBUG/dalvikvm(651): HeapWorker thread has shut down
04-06 15:04:39.588: DEBUG/jdwp(651): JDWP shutting down net...
04-06 15:04:39.588: INFO/dalvikvm(651): Debugger has detached; object registry had 1 entries
04-06 15:04:39.607: DEBUG/dalvikvm(651): VM cleaning up
04-06 15:04:39.683: ERROR/AndroidRuntime(651): ERROR: thread attach failed
04-06 15:04:40.008: DEBUG/CameraDemo(630): onCreate'd
04-06 15:04:40.177: DEBUG/dalvikvm(651): LinearAlloc 0x0 used 638596 of 5242880 (12%)
04-06 15:04:40.837: DEBUG/CameraService(31): CameraService::connect E (pid 630, client 0xe138)
04-06 15:04:40.848: DEBUG/CameraService(31): Client::Client E (pid 630)
04-06 15:04:40.857: DEBUG/CameraHardwareStub(31): initHeapLocked: preview size=176x144
04-06 15:04:40.896: ERROR/MediaPlayerService(31): error: -2
04-06 15:04:40.906: ERROR/MediaPlayer(31): Unable to to create media player
04-06 15:04:40.906: ERROR/CameraService(31): Failed to load CameraService sounds.
04-06 15:04:40.937: ERROR/MediaPlayerService(31): error: -2
04-06 15:04:40.937: ERROR/MediaPlayer(31): Unable to to create media player
04-06 15:04:40.937: ERROR/CameraService(31): Failed to load CameraService sounds.
04-06 15:04:40.947: DEBUG/CameraService(31): Client::Client X (pid 630)
04-06 15:04:40.947: DEBUG/CameraService(31): CameraService::connect X
04-06 15:04:40.947: DEBUG/CameraService(31): setPreviewDisplay(0xdbc0) (pid 630)
04-06 15:04:40.966: DEBUG/CameraService(31): getParameters(picture-format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-rate=15;preview-size=176x144)
04-06 15:04:40.976: DEBUG/CameraService(31): setParameters(preview-size=320x349;preview-format=yuv422sp;picture-size=213x350;picture-format=jpeg;preview-frame-rate=15)
04-06 15:04:40.976: DEBUG/CameraHardwareStub(31): initHeapLocked: preview size=320x349
04-06 15:04:40.998: DEBUG/CameraService(31): startPreview (pid 630)
04-06 15:04:40.998: DEBUG/CameraService(31): startCameraMode(0) (pid 630)
04-06 15:04:40.998: DEBUG/CameraService(31): startPreviewMode (pid 630)
04-06 15:04:41.098: INFO/ActivityManager(58): Displayed activity myapp.android/.CameraApplication: 1561 ms (total 1561 ms)
04-06 15:04:41.396: DEBUG/Camera-JNI(630): dataCallback(16, 0x1342c8)
04-06 15:04:41.667: DEBUG/Camera-JNI(630): dataCallback(16, 0x148958)
04-06 15:04:41.731: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546481502.jpg
04-06 15:04:41.737: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:41.746: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:41.746: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:41.777: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:41.810: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:41.844: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:41.857: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:41.937: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:41.966: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:41.966: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:41.977: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:41.998: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:41.998: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:42.007: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:42.156: DEBUG/Camera-JNI(630): dataCallback(16, 0x148958)
04-06 15:04:42.386: DEBUG/dalvikvm(630): GC freed 693 objects / 260200 bytes in 201ms
04-06 15:04:42.476: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546482073.jpg
04-06 15:04:42.527: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:42.537: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:42.556: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:42.556: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:42.567: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:42.577: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:42.606: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:42.606: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:42.660: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:42.667: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:42.696: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:42.743: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:42.747: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:42.757: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:43.017: DEBUG/Camera-JNI(630): dataCallback(16, 0x119d20)
04-06 15:04:43.267: DEBUG/dalvikvm(630): GC freed 528 objects / 254496 bytes in 220ms
04-06 15:04:43.347: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546482943.jpg
04-06 15:04:43.418: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:43.453: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:43.466: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:43.507: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:43.507: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:43.507: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:43.527: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:43.547: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:43.573: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:43.577: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:43.577: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:43.577: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:43.577: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:43.587: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:43.702: DEBUG/Camera-JNI(630): dataCallback(16, 0x119d20)
04-06 15:04:43.916: DEBUG/dalvikvm(630): GC freed 501 objects / 249560 bytes in 179ms
04-06 15:04:43.967: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546483607.jpg
04-06 15:04:44.067: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:44.098: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:44.107: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:44.117: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:44.147: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:44.147: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:44.167: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:44.186: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:44.186: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:44.218: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:44.228: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:44.247: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:44.247: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:44.266: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:44.566: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546484532.jpg
04-06 15:04:44.646: DEBUG/Camera-JNI(630): dataCallback(16, 0x24d1c8)
04-06 15:04:44.877: DEBUG/dalvikvm(630): GC freed 473 objects / 247912 bytes in 213ms
04-06 15:04:44.886: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:44.906: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:44.922: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:44.947: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:44.947: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:44.947: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:44.957: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:44.976: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:44.986: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:45.017: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:45.037: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:45.047: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:45.047: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:45.069: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:45.166: DEBUG/Camera-JNI(630): dataCallback(16, 0xbac30)
04-06 15:04:45.477: DEBUG/dalvikvm(630): GC freed 261 objects / 237736 bytes in 300ms
04-06 15:04:45.547: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546485113.jpg
04-06 15:04:45.556: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:45.606: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:45.606: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:45.644: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:45.683: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:45.696: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:45.736: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:45.752: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:45.757: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:45.757: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:45.757: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:45.757: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:45.757: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:45.757: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:46.157: DEBUG/Camera-JNI(630): dataCallback(16, 0x119d20)
04-06 15:04:46.226: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546486053.jpg
04-06 15:04:46.507: DEBUG/dalvikvm(630): GC freed 580 objects / 253416 bytes in 260ms
04-06 15:04:46.526: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:46.541: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:46.546: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:46.546: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:46.546: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:46.596: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:46.596: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:46.636: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:46.670: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:46.688: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:46.707: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:46.729: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:46.729: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:46.729: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:46.848: DEBUG/Camera-JNI(630): dataCallback(16, 0xbac30)
04-06 15:04:47.037: DEBUG/dalvikvm(630): GC freed 322 objects / 241128 bytes in 171ms
04-06 15:04:47.128: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546486790.jpg
04-06 15:04:47.168: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:47.196: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:47.196: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:47.226: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:47.226: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:47.237: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:47.237: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:47.287: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:47.287: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:47.338: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:47.338: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:47.338: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:47.338: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:47.338: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:47.506: DEBUG/Camera-JNI(630): dataCallback(16, 0xbac30)
04-06 15:04:47.746: DEBUG/dalvikvm(630): GC freed 418 objects / 245440 bytes in 216ms
04-06 15:04:47.866: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546487416.jpg
04-06 15:04:47.907: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:47.916: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:47.950: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:47.957: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:47.957: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:47.985: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:47.987: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:48.019: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:48.026: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:48.026: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:48.067: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:48.094: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:48.107: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:48.107: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:48.207: DEBUG/Camera-JNI(630): dataCallback(16, 0x119d20)
04-06 15:04:48.628: DEBUG/dalvikvm(630): GC freed 424 objects / 245816 bytes in 396ms
04-06 15:04:48.668: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546488179.jpg
04-06 15:04:48.700: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:48.768: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:48.806: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:48.827: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:48.846: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:48.856: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:48.866: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:48.882: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:48.888: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:48.898: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:48.937: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:48.963: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:48.976: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:48.999: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:49.118: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546489092.jpg
04-06 15:04:49.201: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:49.247: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:49.257: DEBUG/Camera-JNI(630): dataCallback(16, 0x24d1c8)
04-06 15:04:49.487: DEBUG/dalvikvm(630): GC freed 541 objects / 251480 bytes in 209ms
04-06 15:04:49.540: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:49.540: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:49.540: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:49.540: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:49.540: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:49.540: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:49.556: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:49.687: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:49.696: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:49.777: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:49.777: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:49.777: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:49.846: DEBUG/Camera-JNI(630): dataCallback(16, 0x1367b8)
04-06 15:04:50.137: DEBUG/dalvikvm(630): GC freed 224 objects / 235696 bytes in 274ms
04-06 15:04:50.287: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546490166.jpg
04-06 15:04:50.296: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:50.307: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:50.337: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:50.362: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:50.376: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:50.400: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:50.426: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:50.439: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:50.439: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:50.439: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:50.439: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:50.439: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:50.439: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:50.439: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:50.637: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546490578.jpg
04-06 15:04:50.658: DEBUG/Camera-JNI(630): dataCallback(16, 0x119d20)
04-06 15:04:50.967: DEBUG/dalvikvm(630): GC freed 594 objects / 254152 bytes in 270ms
04-06 15:04:50.976: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:50.976: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:50.986: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:51.077: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:51.086: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:51.097: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:51.118: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:51.118: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:51.118: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:51.127: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:51.127: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:51.127: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:51.127: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:51.157: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:51.258: DEBUG/CameraService(31): takePicture (pid 630)
04-06 15:04:51.347: DEBUG/dalvikvm(105): GC freed 190 objects / 8392 bytes in 5151ms
04-06 15:04:51.466: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546491390.jpg
04-06 15:04:51.476: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:51.510: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:51.517: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:51.526: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:51.566: WARN/System.err(630): at myapp.android.Preview$1.onPreviewFrame(Preview.java:49)
04-06 15:04:51.566: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:333)
04-06 15:04:51.622: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:51.628: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:51.628: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:51.628: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:51.658: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:51.658: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:51.658: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:51.658: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:51.788: DEBUG/CameraDemo(630): onShutter'd
04-06 15:04:51.806: DEBUG/CameraDemo(630): onPictureTaken - raw
04-06 15:04:51.837: DEBUG/Camera-JNI(630): dataCallback(256, 0x137568)
04-06 15:04:51.926: WARN/System.err(630): java.io.FileNotFoundException: /sdcard/1270546491890.jpg
04-06 15:04:51.936: WARN/System.err(630): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)
04-06 15:04:51.967: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:97)
04-06 15:04:51.967: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:168)
04-06 15:04:51.967: WARN/System.err(630): at java.io.FileOutputStream.<init>(FileOutputStream.java:147)
04-06 15:04:51.977: WARN/System.err(630): at myapp.android.CameraApplication$3.onPictureTaken(CameraApplication.java:67)
04-06 15:04:51.977: WARN/System.err(630): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:315)
04-06 15:04:51.977: WARN/System.err(630): at android.os.Handler.dispatchMessage(Handler.java:99)
04-06 15:04:51.998: WARN/System.err(630): at android.os.Looper.loop(Looper.java:123)
04-06 15:04:52.007: WARN/System.err(630): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-06 15:04:52.016: WARN/System.err(630): at java.lang.reflect.Method.invokeNative(Native Method)
04-06 15:04:52.032: WARN/System.err(630): at java.lang.reflect.Method.invoke(Method.java:521)
04-06 15:04:52.032: WARN/System.err(630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-06 15:04:52.038: WARN/System.err(630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-06 15:04:52.038: WARN/System.err(630): at dalvik.system.NativeStart.main(Native Method)
04-06 15:04:52.038: DEBUG/CameraDemo(630): onPictureTaken - jpeg


Thanks
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

setting picture size

Postby naveen » Tue Apr 06, 2010 10:46 am

hey..Vik...
u there freind?
are u analyzing my problem?
and just tell me one thing.. does this application run on ur emulator without any error when the setPictureSize method is included?

Because i have to port this to an android application and then have to run it on a development board!
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

Setting Picture Size

Postby naveen » Tue Apr 06, 2010 2:19 pm

Hey vik...
please reply whenever u get time...
i dont know what time it is at ur place but please eke out some time to ans my queries.

Thanks!!
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

Setting Picture SIze

Postby naveen » Wed Apr 07, 2010 5:39 am

hello everyone,

Please read the posts above and help me!
naveen
Developer
Developer
 
Posts: 43
Joined: Fri Mar 26, 2010 10:06 am

Top
Next

Return to Multimedia Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests