Hi, Basically I am trying to invoke the video camera using ACTION_VIDEO_CAPTURE intent and save the subsequent recorded video in a particular directory and name. but my app keeps in crashing, even though the video do get saved. The code I used is as follow:
filepath = "/sdcard/testfolder/testvid.mp4"; File vidfile = new File(filepath); Uri viduri = Uri.fromFile(vidfile); Intent i = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); i.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, viduri); startActivity(i); Any idea how can i resolve this issue? I want to save the video using a particular name and not the default name. I am not sure how to use onActivityResult to do this. is it possible? Thanks In Advance, Perumal On Jul 31, 12:38 pm, TreKing <[email protected]> wrote: > On Sat, Jul 30, 2011 at 4:12 AM, perumal316 <[email protected]> wrote: > > If I just place it at the bottom, it is not executing. > > What does that mean? > > > How to differentiate between he different intents? > > That's the whole point of the "resultCode" parameter ... it tells you what > the result was. > > --------------------------------------------------------------------------- > ---------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

