import android.telephony.PhoneStateListener;
import android.telephony.TelephonyManager;
-import com.google.android.gcm.GCMRegistrar;
-
/*
* Copyright © 2013 Marius Gavrilescu
*
@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);
import android.util.Base64;
import android.util.Log;
-import com.google.android.gcm.GCMRegistrar;
-
/*
* Copyright © 2013 Marius Gavrilescu
*
conn.setDoOutput(true);
conn.setFixedLengthStreamingMode(data.length);
}
- conn.setRequestProperty("X-ID", GCMRegistrar.getRegistrationId(context));
final String user=PreferenceManager.getDefaultSharedPreferences(context).getString("username", null);
final String password=PreferenceManager.getDefaultSharedPreferences(context).getString("password", null);
if(user == null || password == null){