mirror of
https://github.com/cwinfo/envayasms.git
synced 2025-04-13 11:48:19 +00:00
23 lines
502 B
Java
Executable File
23 lines
502 B
Java
Executable File
|
|
package org.envaya.kalsms.receiver;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import org.envaya.kalsms.App;
|
|
|
|
public class BootReceiver extends BroadcastReceiver {
|
|
|
|
@Override
|
|
public void onReceive(Context context, Intent intent)
|
|
{
|
|
App app = (App)context.getApplicationContext();
|
|
if (!app.isEnabled())
|
|
{
|
|
return;
|
|
}
|
|
|
|
app.setOutgoingMessageAlarm();
|
|
}
|
|
}
|