[android-developers] Slow motion video

2011-05-24 Thread TheBear
I am able to play back video using the mediaplayer with the standard
video control buttons.

My question is how can I use a slider /progress bar to act as a play
back speed.
which function would I have to override and how.
basically

while not end of movie
play next frame
sleep (value of progress bar   (0 - 100) * 4000);

this way when the slider/progress bar is at 0 sleep is 0; thus there
is NO delay in playback

when the slider is at 100 then sleep is 40,000, thus there is a 40
second delay between frames causing the video to slow.

As you can see I have a concept but I am not sure of the routines, I
found reference to play a frame
 but could not find any examples and it would appear that it is now
depreciated.

thanks in advance

-- 
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


[android-developers] Re: Camera App

2011-05-24 Thread TheBear
Okay thanks for that, but what I'm trying to do is have a single
button in my app, and then let the user decide if they want to photo
or video once they are in the  camera app.  Just as if they selected
the camera app from the home screen.

How can I just call the camera app from within mine and have it behave
as if they clicked it from the home screen ?

thanks again


On May 24, 12:17 pm, Dianne Hackborn  wrote:
> This Intent is used to bring up a UI to have the user take a single picture
> and return it to you.  Use ACTION_VIDEO_CAPTURE to instead have them record
> a video.
>
> All of the intent actions you can use to interact with the camera are
> defined here:
>
> http://developer.android.com/reference/android/provider/MediaStore.html
> 
>
>
>
>
>
>
>
>
>
> On Tue, May 24, 2011 at 3:38 AM, New Developer  wrote:
> > On my Zoom's home Screen it has the camera app, which has a button
> > for front and back camera  and then a slider/button for  video or photo
> > When it saves a photo is it  IMG_mmDDhhMMss.jpg
> > All of which is great / perfect
>
> > Using the following code
>
> > ContentValues values = new ContentValues();
> > values.put(MediaStore.Images.Media.TITLE, fName);
> > values.put(MediaStore.Images.Media.DESCRIPTION, "Image Capture by  ME");
> > imageUri = getContentResolver().insert(MediaStore.Images.Media.
> > EXTERNAL_CONTENT_URI, values);   intent   = new Intent(MediaStore.
> > ACTION_IMAGE_CAPTURE);   intent.putExtra(MediaStore.EXTRA_OUTPUT,
> > imageUri);   intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
>
> > 1) I get no front / back button
> > 2) I get no slider  video / photo
> > 3) It uses what I pass a fName.
>
> > How do I just plainly call the Camera app that exists on the home screen
> > with all it's standard features and functions.  I want the front/back
> >  video/photo and the file naming is perfect. So how do I just all it from my
> > app?
>
> > thanks in advance
>
> > --
> > 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
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
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


[android-developers] Mouse Pointer

2011-05-05 Thread TheBear
Anyone know how to create a mouse pointer  for the finger ??

I have a framelayout  which displays an ImageView  This must be the
background image
Then on top  I am trying to draw lines
I'm trying to have a mouse pointer  (looks more like a target sites)
so that you can fix the start of the line
then  using the same fix the end of the line and finally draw a line
between the two points

I'm using the onTouch  and triggering with ACTON_DOWN etc..

When I move the pointer it either leaves a ghost trail behind,  or  if
using XferMode   leaves a black square ?

any help would be greatly appreciated

thanks in advance

-- 
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