You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
simplesshd/app/src/main/java/org/galexander/sshd/BootReceiver.java

16 lines
404 B

package org.galexander.sshd;
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.Context;
public class BootReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
Prefs.init(context);
if (Prefs.get_onboot()) {
SimpleSSHDService.my_startService(context,
new Intent(context, SimpleSSHDService.class));
}
}
}