Is there a way to determine when a memory card is inserted in Android device?? In particular Samsung Galaxy S4
mount point log in dmesg
When you connect a memory card to run Android Media Scanner, which scans all the media files to the external drive. The list of files and the date of the scan (the date of the creation of records in the database) are recorded in external.db, /data/com.android.providers.media/database. If you have a memory card, which is connected, you can compare the files stored on it with a list of files included in external.db. Latest records about the files in external.db can testify about the date of a memory card connection.
When you connect a memory card to run Android Media Scanner, which scans all the media files to the external drive. The list of files and the date of the scan (the date of the creation of records in the database) are recorded in external.db, /data/com.android.providers.media/database. If you have a memory card, which is connected, you can compare the files stored on it with a list of files included in external.db. Latest records about the files in external.db can testify about the date of a memory card connection.
Thank you. It helped me.