]> iEval git - fonbot.git/commitdiff
Remove some remaining GCM parts
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 27 Jul 2013 13:35:23 +0000 (16:35 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 27 Jul 2013 13:35:23 +0000 (16:35 +0300)
src/ro/ieval/fonbot/FonBotApplication.java
src/ro/ieval/fonbot/HttpCallExecutableRunnable.java

index 64eb60269ad39a77c3bffcf3238fa6ebf3a861fe..2e4125e93de00d1800405a6183a67520629e29da 100644 (file)
@@ -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);
index 43e8b3fabb6f479a170a825c3323ea524a027b3b..a513ed63ca8efbf1fe034e3731a317da72a291b0 100644 (file)
@@ -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){
This page took 0.0186 seconds and 4 git commands to generate.