BroadCast Receiver Not triggering(Only when device restart)
<p>I created one custom receiver inside Activity for when internet is connected auto calling web service.Its working fine but i have faced issue in below scenario.</p>

<ol>
<li>Turn off my internet connectivity.</li>
<li>restart my device.</li>
<li>Open my application.</li>
</ol>

<p>That time is not calling OnReceive function.</p>

<p>Code Like Below</p>

<pre><code> private BroadcastReceiver mConnReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            boolean noConnectivity = intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false);
            if (!noConnectivity) {
                bar.setVisibility(View.VISIBLE);
                callAuthorizeWebservice();
            } else {
                bar.setVisibility(View.INVISIBLE);
                Toast.makeText(SplashScreenActivity.this, "Check Your Internet connection", Toast.LENGTH_LONG).show();
            }
        }
    };
</code></pre>

<p>And</p>

<pre><code>@Override
    protected void onStart() {
        super.onStart();
        this.registerReceiver(this.mConnReceiver,
                new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));
    }
</code></pre>

<p>Kindly help me to solve this issue</p>