On Wed, Jul 20, 2011 at 8:58 AM, pedramz <pedra...@gmail.com> wrote:
> I need to detect when the user takes new photos and records new videos
> with phone camera.

That sounds like malware.

> I have tried two ways of doing this with limited
> success. The first method is receiving intent action
> com.android.camera.NEW_PICTURE which works for photos and not for
> videos.

And only works for that application, at best.

> Also this method does not seem to be documented so I'm sure if
> I should be using it.

No, you should not.

> The second method I have tried with no success is receiving
> ACTION_MEDIA_SCANNER_SCAN_FILE. I do not receive this in my app. (Is
> this method possible?)

That is designed for developers to send, not receive. I have no idea
if you can implement a BroadcastReceiver to listen for it or not. I
would expect it to work, but I have never tried it.

> Am I looking in the right place and if not has anyone a suggestion on
> how I should proceed.

Take the photos and videos that you need in your own application using
the Camera and MediaRecorder classes, respectively.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

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