import android.content.Context;
import android.content.Intent;
-import android.os.Handler;
-import android.os.Looper;
-
import com.google.android.gcm.GCMBaseIntentService;
/*
* @author Marius Gavrilescu <marius@ieval.ro>
*/
public class GCMIntentService extends GCMBaseIntentService {
- /** Handler instance */
- private final Handler handler=new Handler(Looper.getMainLooper());
-
/**
* Constructs a GCMIntentService with the iEval sender id
*/
if(context==null)
return;
- handler.post(new Runnable(){
- @Override
- public void run() {
- new PollServerAsyncTask(context).execute();
- }
- });
+ Utils.pollServer(context);
}
@Override
protected void onRegistered(@Nullable final Context context, @Nullable final String regID) {
- FonBotApplication.instance.regID=regID;
+ //do nothing
}
@Override