From 008a56e6bcdef70992129b09735aaf8205c76292 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 27 Jul 2013 16:35:23 +0300 Subject: [PATCH] Remove some remaining GCM parts --- src/ro/ieval/fonbot/FonBotApplication.java | 6 ------ src/ro/ieval/fonbot/HttpCallExecutableRunnable.java | 3 --- 2 files changed, 9 deletions(-) diff --git a/src/ro/ieval/fonbot/FonBotApplication.java b/src/ro/ieval/fonbot/FonBotApplication.java index 64eb602..2e4125e 100644 --- a/src/ro/ieval/fonbot/FonBotApplication.java +++ b/src/ro/ieval/fonbot/FonBotApplication.java @@ -5,8 +5,6 @@ import android.content.Intent; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; -import com.google.android.gcm.GCMRegistrar; - /* * Copyright © 2013 Marius Gavrilescu * @@ -40,10 +38,6 @@ public final class FonBotApplication extends Application { @Override public void onCreate() { super.onCreate(); - //GCMRegistrar.checkDevice(this); - final String regID=GCMRegistrar.getRegistrationId(this); - if("".equals(regID)) - GCMRegistrar.register(this, GCM_SENDER_ID); final TelephonyManager tman=(TelephonyManager) getSystemService(TELEPHONY_SERVICE); tman.listen(new FonBotPhoneStateListener(this), PhoneStateListener.LISTEN_CALL_STATE); diff --git a/src/ro/ieval/fonbot/HttpCallExecutableRunnable.java b/src/ro/ieval/fonbot/HttpCallExecutableRunnable.java index 43e8b3f..a513ed6 100644 --- a/src/ro/ieval/fonbot/HttpCallExecutableRunnable.java +++ b/src/ro/ieval/fonbot/HttpCallExecutableRunnable.java @@ -16,8 +16,6 @@ import android.preference.PreferenceManager; import android.util.Base64; import android.util.Log; -import com.google.android.gcm.GCMRegistrar; - /* * Copyright © 2013 Marius Gavrilescu * @@ -139,7 +137,6 @@ public final class HttpCallExecutableRunnable extends ExecutableRunnable{ conn.setDoOutput(true); conn.setFixedLengthStreamingMode(data.length); } - conn.setRequestProperty("X-ID", GCMRegistrar.getRegistrationId(context)); final String user=PreferenceManager.getDefaultSharedPreferences(context).getString("username", null); final String password=PreferenceManager.getDefaultSharedPreferences(context).getString("password", null); if(user == null || password == null){ -- 2.39.2