android intent for sdcard ready

前端 未结 1 1211
一个人的身影
一个人的身影 2020-12-01 14:16

I have an application that uses a file on the SD card, the application runs when the phone boots, and it has become apparent that the file cannot be accessed when the progra

相关标签:
1条回答
  • 2020-12-01 15:17

    Lookup ACTION_MEDIA_MOUNTED broadcast action on the Intent

    public static final String ACTION_MEDIA_MOUNTED
    
    Since: API Level 1
    Broadcast Action: External media is present and mounted at its mount point. The path to the mount point for the removed media is contained in the Intent.mData field. The Intent contains an extra with name "read-only" and Boolean value to indicate if the media was mounted read only.
    Constant Value: "android.intent.action.MEDIA_MOUNTED"
    
    0 讨论(0)
提交回复
热议问题