(Context context)
| 1159 | } |
| 1160 | |
| 1161 | static void start(Context context) { |
| 1162 | try { |
| 1163 | ContextCompat.startForegroundService(context, new Intent(context, ServiceSend.class)); |
| 1164 | } catch (Throwable ex) { |
| 1165 | Log.e(ex); |
| 1166 | } |
| 1167 | } |
| 1168 | |
| 1169 | static void stop(Context context) { |
| 1170 | context.stopService(new Intent(context, ServiceSend.class)); |
no test coverage detected