mirror of http://galexander.org/git/simplesshd.git
parent
e07a809980
commit
ebbdac1787
@ -0,0 +1,12 @@
|
||||
package org.galexander.sshd;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Intent;
|
||||
import android.content.Context;
|
||||
|
||||
public class StartReceiver extends BroadcastReceiver {
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
context.startService(
|
||||
new Intent(context, SimpleSSHDService.class));
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package org.galexander.sshd;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Intent;
|
||||
import android.content.Context;
|
||||
|
||||
public class StopReceiver extends BroadcastReceiver {
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
context.startService(
|
||||
new Intent(context, SimpleSSHDService.class)
|
||||
.putExtra("stop", true));
|
||||
}
|
||||
}
|
Loading…
Reference in new issue