* here is my code:
package* net.sleepy.video;
i*mport* android.app.Activity;
*
import* android.content.Intent;
*
import* android.os.Bundle;
*
public* *class* Capture *extends* Activity {
/** Called when the activity is first created. */
@Override
*public* *void* onCreate(Bundle savedInstanceState) {
*super*.onCreate(savedInstanceState);
setContentView(R.layout.*main*);
startActivityForResult(
*new* Intent( android.provider.MediaStore.*ACTION_VIDEO_CAPTURE*), 2);
}
}
On Mon, Jul 13, 2009 at 9:52 AM, hanged_man <[email protected]> wrote:
>
> Muhammad,
> This is the very same problem that i used to have with the camera and
> i've managed to get around it with the solution that i suggested
> before. However, you might want to send me your source code (or more
> like a snippet) and ill try it locally on my machine.
>
>
> On Jul 13, 11:37 am, Zeeshan Muhammad <[email protected]> wrote:
> > Hi Hanged,
> >
> > no it doesn't work on emulator and not even on real device. i dont see
> > anything except application title when i run the above intent
> >
> > On Sun, Jul 12, 2009 at 12:49 AM, hanged_man <[email protected]> wrote:
> >
> > > Zeeshan, does (the intent solution) work on the emulator or not ?
> >
> > > On Jul 12, 1:10 am, Zeeshan Muhammad <[email protected]> wrote:
> > > > i am testing it on real device, i can see only the application title.
> my
> > > > automatic orientation is already disabled .please let me know if
> anybody
> > > has
> > > > tested video capture intent?
> >
> > > > On Sat, Jul 11, 2009 at 10:58 AM, hanged_man <[email protected]>
> wrote:
> >
> > > > > @Zeeshan
> > > > > Are you getting a black screen ? if yes that's probably due to a
> bug
> > > > > in the emulator (i think starting from the latest 1.5 sdk), you
> might
> > > > > as well have noticed that you can't run either the camera or the
> > > > > camcorder from the emulator, it's not a problem in your code it's
> > > > > problem in the emulator itself, to fix this please check the last
> post
> > > > > in this thread:
> >
> > > > >
> http://groups.google.com/group/android-developers/browse_thread/threa.
> > > ..
> >
> > > > > Hope this works for you
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---