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

  • SEARCH
  • Home
  • 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 7662149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:43:38+00:00 2026-05-31T13:43:38+00:00

How can i run multimedia scanner in android? My application download files to SDCARD/Music

  • 0

How can i run multimedia scanner in android? My application download files to SDCARD/Music , but when i run the standard music player, i can’t found new mp3. When I restart my phone, music player see my new mp3.

  • 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-31T13:43:40+00:00Added an answer on May 31, 2026 at 1:43 pm

    Using MediaScannerConnection , it is possible to find the new mp3 .This service wants to binds the client service that means your connection.(You have to forcibily scan the file..) .For more information look here.

         private MediaScannerConnection conn;
                private String newFilePath = "New File Path";
    
                conn = new MediaScannerConnection(this,
                        new MediaScannerConnection.MediaScannerConnectionClient() {
    
                            @Override
                            public void onScanCompleted(String path, Uri uri) {
                                if (path.equals(newFilePath)) {
                                    Log.i("Scan Status", "Completed");
     conn.disconnect();
                                }
                            }
                            @Override
                            public void onMediaScannerConnected() {
                                // TODO Auto-generated method stub
                                                  conn.scanFile("path of the new file", null);
    
                            }
                        });
                conn.connect();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can run my Java Swing application from Eclipse without problems. But when I
I can run this code in Android app (using PhoneGap adn jQuery Mobile) but
I can run an application with ⌘F11 or ⇧⌘F11, but how do I stop
I can run the following query in PHPMyAdmin, but for some reason I get
I can run my program outside of a jar file, but I want to
I can run multi-queries with MYSQL v5 with extension PHP :mysqli. But with MYSQL
I can run this query in MySQL and it works just fine. BUT, I
I can run my Asp.Net MVC 2 application without an issue on my local
I can run my project through netbeans but after I make a jar file
I can run a flyway migration from inside Eclipse, but not from the DOS

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.