Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8965233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:46:04+00:00 2026-06-15T16:46:04+00:00

I am trying to add a gif animation over a camera in android. The

  • 0

I am trying to add a gif animation over a camera in android. The idea is to get the animation becoming part of the video being taken by the phone camera (something like augmented reality).

I have tried 2 options.

  1. Add GIF on camera view, using http://droid-blog.net/2011/10/14/tutorial-how-to-use-animated-gifs-in-android-part-1/.

    With this I will need to develop the whole thing in native android

  2. Use a third party library like QCAR https://developer.qualcomm.com/mobile-development/mobile-technologies/augmented-reality.

    I was successfully able to create animation over the marker, but in my case I need the animation to be available without marker, something like on a button press.

Has anybody tried achieving similar functionality (adding animation to video or photos clicked by camera)? What is a good approach to achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:46:05+00:00Added an answer on June 15, 2026 at 4:46 pm

    Was not able to find a very smooth way to run a gif on cameraview as it is, but converting the gif to series of images and animating using AnimationDrawable class did the trick

    //sample code to animate 3 bitmaps (frameBitmaps)
    
    AnimationDrawable myAnimation = new AnimationDrawable();
    frameBitmapDrawable = new BitmapDrawable(frameBitmap);
    myAnimation.addFrame(frameBitmapDrawable, 225);
    frameBitmapDrawable2 = new BitmapDrawable(frameBitmap2);
    myAnimation.addFrame(frameBitmapDrawable2, 225);
    frameBitmapDrawable3 = new BitmapDrawable(frameBitmap3);
    myAnimation.addFrame(frameBitmapDrawable3, 225);
    myImageView.setBackgroundDrawable(myAnimation);
    myAnimation.start();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm trying to add some animated gif into static image (canvas), here's my start
I'm trying to add a .gif image into my java applet but for some
I am new to java, and am trying to add an image 'space.gif' from
Im trying to add an animation of a monkey using a NSMutablAarray of UIImageViews.
I'm trying to add GIF generation functionality to my app so that the user
I'm trying to get a images file extension and add some random number. Like
I am trying to add a GIF image in my flex application. However it
I am trying to get the the bilde() methode add images too my JLabel
I'm trying to add an animated gif to an html5 canvas object. The problem
I'm trying add data triggers to the default combobox style so each text item

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.