>
> Hi NobuGames,
>  I think your third point is almost correct with my question . In the 
> third point you have given valid point.. 
>  But i need something different. like i should open the camera hardware 
> with the intent .. but  i dont want to show the camera preview in my app. 
> it should get run in the background. At the same time i should pass the 
> some pictures to the camrera stream ..... is it possible ?????
>

Hi Rajesh,

please do not write personally to me and stick with this group so others 
can respond to you too.

Now to your problem. I am a kind of guy who tries to get to the bottom of a 
problem. And a lot of people who are trying to solve things are not 
completely aware of what they are actually trying to do or what they really 
want or need. They have a need or an idea and come up with solutions that 
introduce more problems than they solve. And on top of that, these solution 
ideas confuse other people when being asked for help.

I have the impression that you are trying to create some kind of app that 
creates videos and superimposes pictures on top of that video. That app is 
also able to take device screenshots and assembles pictures into GIF 
animations.

I noticed that you are taking bad advice of other users on this group here 
for granted and incorporate that advice into your own problem solution 
process. You were asking how to capture screen shots and take a video of 
the screen. Someone comes and responds:

use camera intent to capyure image and video


Which has nothing to do with the question. But nevertheless, you take this 
advice over into your own vocabulary and present it as a step towards your 
solution process in another thread of yours.

Get rid of all these ideas first. Take a step back and try to reconsider 
what you are trying to do. More importantly, instead of explaining 
half-baked ideas that are sometimes technically wrong and confusing you 
should try to make clear what the purpose of your question is.

And now to your question.

   1. Set up an android.hardware.Camera object (read the link I posted 
   earlier)
   2. Add your own custom 
Camera.PreviewCallback<http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html>to
 that Camera object by calling Camera.addCallbackBuffer and 
   
Camera.setPreviewCallbackWithBuffer<http://developer.android.com/reference/android/hardware/Camera.html#setPreviewCallbackWithBuffer%28android.hardware.Camera.PreviewCallback%29>
   3. Let your PreviewCallback pass over the camera preview frame over to 
   your native code.
   4. Store the frames in your native code and do whatever you want to do 
   with it (superimposing pictures, creating a video based on it... boundless 
   possibilities).
   5. Reconsider. Maybe you just want to add "special effects" to a video. 
   Then forget about the camera and just manipulate the video.
   

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