X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Ffonbot%2FFonBotApplication.java;h=2e4125e93de00d1800405a6183a67520629e29da;hb=a646935d0f44af999dca8b068aa9568ed5aab988;hp=38b5b40ac7ca30ab0c70a1f4230e134d476d9cf0;hpb=a97d31fb5c1bc1725079b5329168b22db3cf9cf3;p=fonbot.git diff --git a/src/ro/ieval/fonbot/FonBotApplication.java b/src/ro/ieval/fonbot/FonBotApplication.java index 38b5b40..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 * @@ -36,28 +34,13 @@ 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); - 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));