I am fairly new to android and I would like my app to be able to retrieve the phone number of caller while ringing and store it. How can I do this?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
Need to Extend BroadcastReceiver
public class CallReceiver extends BroadcastReceiver {
You need to use a BroadcastReceiver. It should look something like this:
Check this post:
Reflection to access advanced telephony features
I'm sorry I can't give a more detailed answer, but check out this project.
It makes use of an AIDL to communicate with the ITelephony interface. This should get started in the right direction.