Sender1 Android Force MediaScan (2012.04.26) Util 클래스를 만들어서 아래와 같은식으로 Context와 BroadcastReceiver를 던져서 static변수로 만들었다. private static final String MEDIA_MOUNTED = Intent.ACTION_MEDIA_MOUNTED;public static final String SCAN_START = Intent.ACTION_MEDIA_SCANNER_STARTED;public static final String SCAN_FINISH = Intent.ACTION_MEDIA_SCANNER_FINISHED; public static void RefreshDB(Context mContext, BroadcastReceiver mReceiver, String folderPath) {In.. 스터디/Android+Java 2017. 10. 7. 이전 1 다음