title: Using intent filters with broadcastReceivers Android
body: <p>please how is the correct way to use broadcastReceiver in concert with Intent filters..
  In my android_manifest.xml file I have those lines:</p>
  
  <pre><code>        &lt;activity android:name=".DataDisplayActivity" android:theme="@android:style/Theme.Holo.NoActionBar" android:icon="@drawable/icon_3d" android:label="AdvancedHyperXPositiveSuperFluousApp"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.simekadam.blindassistant.UPDATE_GPS_UI"/&gt;
              &lt;action android:name="com.simekadam.blindassistant.UPDATE_CONTEXT_UI"/&gt; 
          &lt;/intent-filter&gt;
          &lt;intent-filter &gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;/activity&gt;
  </code></pre>
  
  <p>And in the activity I set the receiver with this function</p>
  
  <pre><code>    registerReceiver(broadcastReceiver, null);
  </code></pre>
  
  <p>It fails on the null, obvi it needs the IntentFilter to be set and I can add it inline as param to the function, but I asking, how to use it with XML defined intent filters..Thank for your help</p>
  
  <p>Teaser: I actually got it working with the inline set intent, but I am asking how to make it working with the intent set in XML..</p>