After Call - Development Integration Manual
After Call - Development Integration Manual
In the app manifest, the Admob APPLICATION_ID must appear within the
application tag; the library fetches it from there.
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713"/>
<uses-permission android:name="android.permission.READ_CALL_LOG"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
Instructions
In the target application, after obtaining user permissions, you must import
these 2 references in order to work with after_call
import com.weewoo.after_call.receiver.PhoneStateReceiverAfc
import com.weewoo.after_call.ad.AdsData
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
//INIT OF RECEIVER
AdsData.setAdsData(applicationContext, adUnit)
phoneStateReceiver = PhoneStateReceiverAfc()
var listener =
phoneStateReceiver.PhoneCallStartEndDetector(applicationContext)
intentFilter.addAction(TelephonyManager.EXTRA_STATE)
registerReceiver(phoneStateReceiver, intentFilter)
//REST OF CODE
It's essential to respect the name "adUnit" in the intent for consistency.
The two AdMob IDs mentioned in this document are the test IDs provided by
AdMob.
If all the configuration has been done properly you should see this screen
after a call is ended: