1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-27 09:48:08 +00:00
simplesshd/src/org/galexander/sshd/BootReceiver.java
2014-12-17 23:18:27 -05:00

16 lines
383 B
Java

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()) {
context.startService(new Intent(context,
SimpleSSHDService.class));
}
}
}