can broadcast receveir work even when my app is closed
<p>I am building a simple sms app , i want to open my app automaticaly when ever a new sms is received? is <b>it even possible?</b>
i am using broadcast receiver for this</p>

<p>what changes should i made in manifest?</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.message"
android:versionCode="1"
android:versionName="1.0" &gt;

&lt;uses-sdk android:minSdkVersion="15" /&gt;

&lt;application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" &gt;
    &lt;activity
        android:name=".MessageActivity"
        android:label="@string/app_name" &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;receiver android:name=".SmsReceiver" &gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt;
            &lt;/intent-filter&gt;
        &lt;/receiver&gt;
    &lt;/activity&gt;
    &lt;activity android:name=".Reply" &gt;
    &lt;/activity&gt;
 &lt;/application&gt;

&lt;uses-permission android:name="android.permission.READ_SMS" /&gt;
&lt;uses-permission android:name="android.permission.SEND_SMS" /&gt;
&lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt;

&lt;/manifest&gt;
</code></pre>
