|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This report was generated with an evaluation server license. Purchase Clover or configure your license. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AnCalReceiver | Line # 11 | 3 | 4 | 0% |
0.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
No Tests | |||
1 | ||
2 | package pl.magot.vetch.ancal; | |
3 | ||
4 | ||
5 | import pl.magot.vetch.ancal.reminder.AlarmService; | |
6 | import android.content.Context; | |
7 | import android.content.Intent; | |
8 | import android.content.BroadcastReceiver; | |
9 | ||
10 | ||
11 | public class AnCalReceiver extends BroadcastReceiver | |
12 | { | |
13 | 0 |
![]() |
14 | public void onReceive(Context context, Intent intent) | |
15 | { | |
16 | 0 | if ((context != null) && (intent != null)) |
17 | { | |
18 | 0 | if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) |
19 | { | |
20 | 0 | context.startService(new Intent(context, AlarmService.class)); |
21 | } | |
22 | } | |
23 | } | |
24 | } |
|