addProximityAlert and BroadcastReceivers
<p>I am currently working on a map app that has points of interest built into it.
These points are supposed to be announced to the user by means of a proximity alert trigger.
Here is the addproximityAlert() code that I'm using</p>

<pre><code>loc.addProximityAlert(lat, longe, radius, -1, PendingIntent.getActivity(
            c, 0, new Intent().putExtra(loc_name, loc_name), flag));
</code></pre>

<p>The idea is that once the alert fires an alert dialog pops up with a short blurb about the site with the option to either close the alert or get more info(uses WebView).</p>

<p>Thus far I have no run-time or compile-time errors but as I approach each site, nothing happens.</p>

<p>My theory on why nothing happens is that either;</p>

<p>1) I haven't used the PendingIntent correctly, or</p>

<p>2) I haven't set up the BroadcastReceiver correctly</p>

<p>Here is the XML code for the BroadcastRecevier,</p>

<pre><code>&lt;receiver android:name=".ProxyAlertReceiver" &gt;
        &lt;intent-filter&gt;
            &lt;action android:name="entering" /&gt;
        &lt;/intent-filter&gt;
    &lt;/receiver&gt;
</code></pre>

<p>My current plan to fix this issue is to modify the PendingIntent to use a new Intent like this;</p>

<pre><code>...new Intent(myContext, ProxyAlertReceiver.class)...
</code></pre>

<p>and see if I get any results.</p>

<p>Opinions and advice on my issue would be greatly appreciated!</p>
