mirror of
https://github.com/moparisthebest/SSLDroid
synced 2024-11-23 17:32:15 -05:00
Initial support for on-boot startup
Signed-off-by: Balint Kovacs <blint@blint.hu>
This commit is contained in:
parent
769f2768dc
commit
36414ea0b9
14
src/hu/blint/ssldroid/BootStartupReceiver.java
Normal file
14
src/hu/blint/ssldroid/BootStartupReceiver.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package hu.blint.ssldroid;
|
||||||
|
|
||||||
|
import android.content.BroadcastReceiver;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.content.Intent;
|
||||||
|
|
||||||
|
public class BootStartupReceiver extends BroadcastReceiver{
|
||||||
|
@Override
|
||||||
|
public void onReceive(Context context, Intent intent) {
|
||||||
|
Intent serviceIntent = new Intent();
|
||||||
|
serviceIntent.setAction("hu.blint.ssldroid.SSLDroid");
|
||||||
|
context.startService(serviceIntent);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user