X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Ffonbot%2FFonBotApplication.java;h=2e4125e93de00d1800405a6183a67520629e29da;hb=a646935d0f44af999dca8b068aa9568ed5aab988;hp=be774ce6b15d8367801c850f0a514184efc3044f;hpb=8bfdcf7a444359151c18720b01443d6f507bec7e;p=fonbot.git diff --git a/src/ro/ieval/fonbot/FonBotApplication.java b/src/ro/ieval/fonbot/FonBotApplication.java index be774ce..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,16 +38,10 @@ 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); - new PollServerAsyncTask(this).execute(); - startService(new Intent(this, FonBotMainService.class)); // Thread.setDefaultUncaughtExceptionHandler(new RemoteCrashdumpHandler(this));