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 2 s . com import java.io.File; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; public class MediaMountedReceiver extends BroadcastReceiver { private LilDebiAction action; public void onReceive(Context context, Intent intent) { SharedPreferences prefs = PreferenceManager .getDefaultSharedPreferences(context); if (!NativeHelper.installInInternalStorage) { if (!NativeHelper.isStarted() && prefs.getBoolean(context .getString(R.string.pref_start_automatically_key), false)) { if (new File(NativeHelper.image_path).exists() && new File(NativeHelper.mnt).exists()) { action = new LilDebiAction(context, null); action.startDebian(); } } LilDebi.sdcardMounted(); } } }