Mein Rundfunkempfänger für PHONE_STATE
Nähe arbeitet für kitkat
und Lollypop
Version auch wenn App geschlossen ist, aber wenn ich Lollypop
Version verwende seine nicht funktioniert, wenn App geschlossen istBroadCastReciver für Telefonstatus nicht funktioniert als App für Lollypop Version
Hier ist mein Manifest-Datei
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".BlockCallReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
<action android:name="android.intent.action.USER_PRESENT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
</application>
Bitte fügen Sie Ihre Sendung r eceiver Klasse –
Empfänger Klasse ist zu lang. In reciver Klasse Ich bin Anruf automatisch ablehnen – Yogesh
haben Sie eine Antwort für diese – Moulesh