onReceive is never getting call!! I had this working and I made some changes and now I been working on this for 5 hours and dont know what my onReceive is not getting called as I do a SMS to it!
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Log.i(LOG_TAG,"onCreate");
registerReceiver(new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Log.i(LOG_TAG, "onReceive");
if (intent.getAction().equals(ACTION)) {
Log.i(LOG_TAG,"in getAction()");
}
}
}, new IntentFilter(RECEIVE_SMS));
}
}