android - Broadcast receiver is not stopping -


i working on app automatically decline incoming calls specific numbers , send sms in return.my broadcast receiver should enabled app only. so, added ( android:enabled="false" ) this. but, receiver still on default. i'm struck here.

<uses-permission android:name="android.permission.call_phone"/> <uses-permission android:name="android.permission.read_phone_state"/>  <application     android:allowbackup="true"     android:icon="@drawable/ic_launcher"     android:label="@string/app_name"     android:theme="@style/apptheme" >      <activity         android:name="com.sifydy.automsgr.automsgr"         android:label="@string/app_name" >         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>     <receiver         android:name="com.sifydy.automsgr.receiver"         android:label="@string/app_name"         android:enabled="false">         <intent-filter>        <action android:name="android.intent.action.phone_state" />        </intent-filter>        </receiver>  </application>     

wen switch on mobile, receiver activated wen ever there incoming call. able disable app. fine once in app. how disble default?


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -