When your application will try to save any data on sdcard using either of:
File.desktopDirectory;//file: ///mnt/sdcard File.documentsDirectory;//file: ///mnt/sdcard File.userDirectory;//file: ///mnt/sdcard
and you notice that you can’t to do so then unplug your device from your PC:)