Hi Jason,

I am not sure if you understood my question correctly... maybe I
didn't frame it right :)

I am trying to start a background activity, for e.g. the accelerometer
from within the Camera app. I want the accelerometer to run while the
user is shooting a video. I don't want to build my own video recorder
(which I have before) coz it doesn't do better than 320 x 240.

So basically, I want to be able to call the Camera app, and use the
camera/video button (on-screen or the hard button) to trigger the
accelerometer.

Could you help?

Abhi

On Feb 10, 1:21 pm, Jason Proctor <jason.android.li...@gmail.com>
wrote:
> are you calling the Camera activity from your application with the
> intent of being called back when the user takes a picture?
>
> the conventional way to do this is to start the Camera with
> startActivityForResult() instead of the regular startActivity().
> override onActivityResult() to receive the user's picture -- but this
> will only happen if they choose to share it via clicking "attach" or
> whatever the camera's equivalent is. i don't think there's a way of
> getting called at the instant the user clicks the capture button --
> and there shouldn't be, IMHO. give the user a chance to retake first
> :-)
>
> another way to do this is to register for shares via the SEND action.
> the registered activity will appear in the share menu (when a user
> long-clicks on a gallery item, etc) and you will get called if the
> user picks your app to handle the content.
>
> hth
>
>
>
>
>
> >anyone?
>
> >On Feb 8, 1:24 pm,Abhi<abhishek.r.sha...@gmail.com> wrote:
> >>  Hi,
>
> >>  Is it possible to start an activity from the built-in Camera app after
> >>  the user touches the on-screen Capture button?
>
> >>  Abhi
>
> >--
> >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
>
> --
> jason.vp.engineering.particle- Hide quoted text -
>
> - Show quoted text -

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

Reply via email to