2016-03-05 107 views
0

我希望在拍摄截图时开始活动,为此我在我的Android清单中使用MEDIA_SCANNER_SCAN_FILE。使用MEDIA_SCANNER_SCAN_FILE开始活动

<activity android:name=".ScreenshotActivity"> 
     <intent-filter> 
      <action android:name="android.intent.action.MEDIA_SCANNER_SCAN_FILE" /> 
      <data android:path="/sdcard/pictures/screenshots" 
       android:host="localhost" 
       android:scheme="file" /> 
     </intent-filter> 
    </activity> 

此剂量无效。

感谢

回答