i had the same problem, ugggh On Mar 16, 5:43 pm, Anna PS <annapowellsm...@googlemail.com> wrote: > Any ideas, anyone? wondering if this is an Android bug, or if I'm > doing something wrong. Seems to work fine when taking photos, just not > videos. > > On Mar 12, 7:27 pm, Anna PS <annapowellsm...@googlemail.com> wrote: > > > NB here's my traceback: > > > 03-12 19:25:57.948: INFO/ActivityManager(936): Starting activity: > > Intent { act=android.intent.action.VIEW dat=file:///sdcard/ > > election_video.3gp } > > 03-12 19:25:57.968: ERROR/videocamera(5482): Couldn't view video > > file:///sdcard/election_video.3gp > > 03-12 19:25:57.968: ERROR/videocamera(5482): > > android.content.ActivityNotFoundException: No Activity found to handle > > Intent { act=android.intent.action.VIEW dat=file:///sdcard/ > > election_video.3gp } > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.app.Instrumentation.checkStartActivityResult(Instrumentation.java: > > 1408) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.app.Instrumentation.execStartActivity(Instrumentation.java: > > 1378) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.app.Activity.startActivityForResult(Activity.java:2749) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.app.Activity.startActivity(Activity.java:2855) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > com.android.camera.VideoCamera.startPlayVideoActivity(VideoCamera.java: > > 362) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > com.android.camera.VideoCamera.onClick(VideoCamera.java:375) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.View.performClick(View.java:2364) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.View.onTouchEvent(View.java:4179) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.View.dispatchTouchEvent(View.java:3709) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > com.android.internal.policy.impl.PhoneWindow > > $DecorView.superDispatchTouchEvent(PhoneWindow.java:1659) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: > > 1107) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.app.Activity.dispatchTouchEvent(Activity.java:2061) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > com.android.internal.policy.impl.PhoneWindow > > $DecorView.dispatchTouchEvent(PhoneWindow.java:1643) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.view.ViewRoot.handleMessage(ViewRoot.java:1691) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.os.Handler.dispatchMessage(Handler.java:99) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.os.Looper.loop(Looper.java:123) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > android.app.ActivityThread.main(ActivityThread.java:4363) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > java.lang.reflect.Method.invokeNative(Native Method) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > java.lang.reflect.Method.invoke(Method.java:521) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > com.android.internal.os.ZygoteInit > > $MethodAndArgsCaller.run(ZygoteInit.java:860) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) > > 03-12 19:25:57.968: ERROR/videocamera(5482): at > > dalvik.system.NativeStart.main(Native Method) > > > On Mar 12, 7:23 pm,AnnaPS<annapowellsm...@googlemail.com> wrote: > > > > Hi all, > > > > I have a problem with supplying a URI in the EXTRA_OUTPUT to the video > > > camera. If I supply a URI, the file shoots and saves OK to that URI, > > > but the 'retake' and 'delete' buttons on the camera both fail to work > > > - 'retake' does nothing, and 'delete' does a force close. > > > > If I don't supply a URI, then the video camera works fine. > > > > Here's my code: > > > > video = new > > > File(Environment.getExternalStorageDirectory(), > > > "my_video.3gp"); > > > if (video.exists()) { > > > Log.d(LOG_TAG, "Video exists, > > > deleting"); > > > video.delete(); > > > } > > > Intent videoCaptureIntent = new > > > Intent(MediaStore.ACTION_VIDEO_CAPTURE); > > > Log.d(LOG_TAG, "passing URI to video > > > camera: " + > > > Uri.fromFile(video).toString()); > > > > > > videoCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, > > > Uri.fromFile(video)); > > > > > > startActivityForResult(videoCaptureIntent,1); > > > > I would like to be able to supply the URI, if possible. Any ideas how > > > I can do this without crashing the camera? > > > > Thanks > > >Anna
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.