Back to project page lildebi.
The source code is released under:
GNU General Public License
If you think the Android project lildebi listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package info.guardianproject.lildebi; /* w ww . j ava 2s .c o m*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; // This receiver tries to stopDebian when sdcard is not present public class MediaUnmountedReceiver extends BroadcastReceiver { private LilDebiAction action; public void onReceive(Context context, Intent intent) { // '!NativeHelper.isInstalled()' check tells us that the image is not // installed after SDcard is unmounted if (!NativeHelper.isInstalled() && NativeHelper.isStarted()) { action = new LilDebiAction(context, null); action.stopDebian(); } if (!NativeHelper.installInInternalStorage) LilDebi.sdcardUnmounted(); } }