From: Marius Gavrilescu Date: Sat, 27 Jul 2013 13:35:23 +0000 (+0300) Subject: Remove some remaining GCM parts X-Git-Tag: 0.000_001~23 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=008a56e6bcdef70992129b09735aaf8205c76292;p=fonbot.git Remove some remaining GCM parts --- 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){