title: Android File open failed: EROFS
body: <p>Sometimes I get Exception.java.io.FileNotFoundException, file open failed: EROFS ( Read- only file System) . I have WRITE_EXTERNAL_STORAGE permission in my manifest, once in a while when I have my services running then I get these exceptions and few operations will not be succeeded but if I reboot my device then it works fine. 
  I want to catch "Exception.java.io.FileNotFoundException" exception and reboot my device programmatically. My device is rooted one so I programmatically execute "su -c reboot". </p>
  
  <p>I need to know how to catch " File open failed: EROFS " exception and trigger a reboot ?? </p>