2 * Copyright (C) 2009 Felix Bechstein
4 * This file is part of WebSMS.
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License as published by the Free Software
8 * Foundation; either version 3 of the License, or (at your option) any later
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
16 * You should have received a copy of the GNU General Public License along with
17 * this program; If not, see <http://www.gnu.org/licenses/>.
19 package de
.ub0r
.android
.adBlock
;
21 import android
.app
.Notification
;
22 import android
.app
.Service
;
25 * Helper class to set/unset background for api5 systems.
29 public class HelperAPI5
{
31 * Run Service in foreground.
33 * @see Service.startForeground()
41 final void startForeground(final Service service
, final int id
,
42 final Notification notification
) {
43 service
.startForeground(id
, notification
);