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 7073655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:57:20+00:00 2026-05-28T05:57:20+00:00

I have been working on an app which includes using the devices camera. After

  • 0

I have been working on an app which includes using the devices camera. After I take the image and save it on the SD card, I want to get it’s Thumbnail through the Media Database of android.
So, I have to start the MediaScanner to let the system to aware my image, which I did.

But, after the MediaScannerConnectionClient finshed scan ,which can be known here

        @Override
        public void onScanCompleted(String path, Uri uri) {

            if (mediaScanConn.isConnected()) {
                mediaScanConn.disconnect();

            }
        }`

It seems that the database update is not finishing the right way, it takes about 800ms on my phone to finish the process, How can I know when the database has finished updating? Please help me,it will be best if you would post your code, Thanks a lot!

  • 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-05-28T05:57:20+00:00Added an answer on May 28, 2026 at 5:57 am

    Even if inserting of the picture information to the database is already finished (same with scanning directory), you can not still guarantee that thumbnail creation is also finished. Thumbnail creation is actually running on a different thread because sometimes it takes some time to extract/decode the thumbnail from the file especially for video files.

    When I checked the Android Camera Application source code, it seems that it is not waiting for the thumbnail generated when inserting the contents information to the database, instead they do the thumbnail generation inside the application. This is because, if the user take a picture when the MediaScanner is still running in the background (right after booting up or mounting of SD card), it will be placed in the end of the queue, which means that it will take time before your image will be processed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an MFC app which I have been working on for a few
I have been working on test framework, which creates a new app domain to
I am working on a web app using C# and asp.net I have been
I'm working on a asp.net mvc2 app. I have been using jquery to do
I have been working on an MVC 3 app. I was using VS 2010's
I have been working on an app all day which has been working fine
I have recently been working on a nodejs app which uses open socket connections
I have been working on an Android app and I want to display a
I have been working on a django app on my local computer for some
I have been working on a Windows Mobile app for a little while now

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.