If you think the Android project KendaliPintuAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/*******************************************************************************
* Copyright (c) 2014 Dimas Rullyan Danu
* /*fromwww.java2s.com*/
* Kendali Pintu is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Kendali Pintu is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Kendali Pintu. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/package com.dimasdanz.kendalipintu.util;
import android.app.IntentService;
import android.content.Intent;
import android.os.Bundle;
publicclass GcmIntentService extends IntentService {
public GcmIntentService() {
super("GcmIntentService");
}
@Override
protectedvoid onHandleIntent(Intent intent) {
Bundle extras = intent.getExtras();
if (!extras.isEmpty()){
String time = (String) extras.get("notification_time");
String name = (String) extras.get("notification_message");
String info = (String) extras.get("notification_info");
if(SharedPreferencesManager.getNotificationPrefs(getApplicationContext())){
CommonUtilities.generateNotification(getApplicationContext(), name, time, info);
}
}
}
}