Tell me more ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

In ICS 4.0.3, I found the below comments in MediaScanner.java

  • In summary:
    • Java MediaScannerService calls
    • Java MediaScanner scanDirectories, which calls
    • Java MediaScanner processDirectory (native method), which calls
    • native MediaScanner processDirectory, which calls
    • native MyMediaScannerClient scanFile, which calls
    • Java MyMediaScannerClient scanFile, which calls
    • Java MediaScannerClient doScanFile, which calls
    • Java MediaScanner processFile (native method), which calls
    • native MediaScanner processFile, which calls
    • native parseMP3, parseMP4, parseMidi, parseOgg or parseWMA, which calls
    • native MyMediaScanner handleStringTag, which calls
    • Java MyMediaScanner handleStringTag.
    • Once MediaScanner processFile returns, an entry is inserted in to the database.

and media/java/android/media/IMediaScannerService.aidl, but have not found who implements the IMediaScannerService, I wonder who starts MediaScannerService?

share|improve this question
Development questions are off topic here, sadly. Please see the FAQ and consider deleting your question here before asking on stackoverflow.com instead – ce4 Aug 21 '12 at 6:21

closed as off topic by ce4, roxan, GAThrawn, Izzy, Al Everett Aug 21 '12 at 15:15

Questions on Android Enthusiasts Stack Exchange are expected to relate to Android within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

Browse other questions tagged or ask your own question.