X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Ffonbot%2FFonBotApplication.java;h=2e4125e93de00d1800405a6183a67520629e29da;hb=62f5262d8bfa537f2b173c0309f1128054cf0916;hp=af5a70c2ac69c236d22c5a4351bf38f6277f687b;hpb=2e5049c9c08b1989b4bfbbfbf479d83dbe2b75a9;p=fonbot.git diff --git a/src/ro/ieval/fonbot/FonBotApplication.java b/src/ro/ieval/fonbot/FonBotApplication.java index af5a70c..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); - Utils.pollServer(this); - startService(new Intent(this, FonBotMainService.class)); // Thread.setDefaultUncaughtExceptionHandler(new RemoteCrashdumpHandler(this));