**i want to show simple toast on new email came in android studio....i am using Receiver but that is not being fired...**

```
 <receiver
            android:name=".MyReceiver"
            android:enabled="true"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.PROVIDER_CHANGED"/>
                <data android:scheme="content"/>
            </intent-filter>
        </receiver>

```

**And in Receiver**

```
 @Override
public void onReceive(Context context, Intent intent) {
    Toast.makeText(context, "Mail received ", Toast.LENGTH_SHORT).show();
    Log.i("mail","mail received");
    context.startActivity(new Intent(context,BottemNavigationActivity.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
}

```