/** Watch cached files for all accounts */ public synchronized void monitorAllAccounts() { List<Account> accounts = new AccountManager(SeadroidApplication.getAppContext()).getAccountList(); for (Account account : accounts) { monitorFilesForAccount(account); } try { start(); Log.d(DEBUG_TAG, "monitor started"); } catch (Exception e) { Log.w(DEBUG_TAG, "failed to start file monitor"); throw new RuntimeException("failed to start file monitor"); } }