title: Broadcast receiver - how to?
body: <p>i'm just practing and i'm trying to make simple brodcastreceiver in Android Studio.</p>
  
  <p>I have this manifest:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="org.maurelio.flipcover"&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
  
      &lt;receiver android:name="SensorReceiver"&gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.BOOT_COMPLETED"&gt;
              &lt;/action&gt;
          &lt;/intent-filter&gt;
  
      &lt;/receiver&gt;
  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>and i have this SensorReceiver.java</p>
  
  <pre><code>package org.maurelio.flipcover;
  
  import android.content.BroadcastReceiver;
  import android.content.Context;
  import android.content.Intent;
  import android.widget.Toast;
  
  /**
   * Created by maurelio on 22/03/18.
  */
  
  public class SensorReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
      Toast.makeText(context, "Intent Detected.", 
      Toast.LENGTH_LONG).show();
    }
  }
  </code></pre>
  
  <p>When i try to run the app i get: "Default Activity not found".
  I tried also invalidate chache/restart, nothing change.</p>
  
  <p>What i'm doing wrong?</p>
  
  <p>Thanks and regards.</p>