Android Open Source - lildebi Media Unmounted Receiver






From Project

Back to project page lildebi.

License

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.

Java Source Code

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();
    }
}




Java Source Code List

info.guardianproject.lildebi.BootCompletedReceiver.java
info.guardianproject.lildebi.InstallActivity.java
info.guardianproject.lildebi.InstallLogViewActivity.java
info.guardianproject.lildebi.InstallService.java
info.guardianproject.lildebi.LilDebiAction.java
info.guardianproject.lildebi.LilDebiApplication.java
info.guardianproject.lildebi.LilDebi.java
info.guardianproject.lildebi.MediaEjectReceiver.java
info.guardianproject.lildebi.MediaMountedReceiver.java
info.guardianproject.lildebi.MediaUnmountedReceiver.java
info.guardianproject.lildebi.NativeHelper.java
info.guardianproject.lildebi.PreferencesActivity.java
info.guardianproject.lildebi.SelectArch.java
info.guardianproject.lildebi.SelectMirror.java
info.guardianproject.lildebi.SelectRelease.java
info.guardianproject.lildebi.StreamDisplay.java
info.guardianproject.lildebi.StreamThread.java
info.guardianproject.lildebi.UnsupportedDeviceActivity.java
org.torproject.android.service.TorServiceConstants.java
org.torproject.android.service.TorServiceUtils.java