Android SMS Service that run in background whole time
<p>Actually I have new hand on Android and I have Finished my job for developing a SMS service that run in background but when another service like facebook etc then service does not capable to read sms how I can resolved this issue pl help me. I also bind the code that I have written for service</p>

<p>thanks n regards</p>

<p>public class SmsService extends Service {</p>

<pre><code>private SMSReceiver mSMSreceiver;
private IntentFilter mIntentFilter;
@Override
public IBinder onBind(Intent arg0) {
    // TODO Auto-generated method stub
    return null;
}
@Override
public void onCreate(){

    super.onCreate();
    mSMSreceiver = new SMSReceiver(this);
    mIntentFilter = new IntentFilter();
    mIntentFilter.addAction(ConstantClass.SMS_RECEIVED);
    registerReceiver(mSMSreceiver,mIntentFilter);
}
@Override 
public int onStartCommand(Intent intent , int flags, int type){
    return START_STICKY;
}

@Override 
public void onDestroy(){
    super.onDestroy();
    unregisterReceiver(mSMSreceiver);
}
</code></pre>

<p>}</p>
