]> iEval git - fonbot.git/blobdiff - src/ro/ieval/fonbot/FonBotApplication.java
Replace GCM and polling with long polling
[fonbot.git] / src / ro / ieval / fonbot / FonBotApplication.java
index 38b5b40ac7ca30ab0c70a1f4230e134d476d9cf0..64eb60269ad39a77c3bffcf3238fa6ebf3a861fe 100644 (file)
@@ -36,28 +36,17 @@ public final class FonBotApplication extends Application {
         * iEval GCM sender id
         */
        public static final String GCM_SENDER_ID = "379674287523";
-       /**
-        * The one instance of FonBotApplication
-        */
-       public static FonBotApplication instance=null;
-       /**
-        * The GCM registration ID
-        */
-       public String regID=null;
 
        @Override
        public void onCreate() {
                super.onCreate();
                //GCMRegistrar.checkDevice(this);
-               regID=GCMRegistrar.getRegistrationId(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);
-               instance=this;
-
-               new PollServerAsyncTask(this).execute();
 
                startService(new Intent(this, FonBotMainService.class));
 
This page took 0.023386 seconds and 4 git commands to generate.