incoming-call

How can we hide call logs of specific contact in android?

别说谁变了你拦得住时间么 提交于 2020-01-01 07:08:15
问题 I am trying to hide call logs from particular contact. For this I have created broadcast receiver for receive event of incoming / outgoing / missed call / call hangup. But how can I get call details on call hangup event ? I know we can get following 2 informations when incoming event occurs : 1) State 2) Phone Number Now for hide contact, I need to delete entry from defalut call log database which is located in “content://call_log/calls” ., and insert it inside my sqlite database. Is there

How does a Android “OS” detect a incoming call

烈酒焚心 提交于 2019-12-30 04:33:29
问题 I'd like to know: how the android OS detect a incoming call(number) and displays the contact name and gives us a option to attend the call. What happens inside the OS when the "END CALL BUTTON" is tapped. When I searched regarding this I am getting only the Classes and methods to create my own app. Requesting for the explanation. 回答1: In Android it is possible to detect call events using the built-in TelephonyManager API. TelephonyManager class provides access to information about the

How to detect and manage incoming call (Android)?

て烟熏妆下的殇ゞ 提交于 2019-12-21 05:35:20
问题 I want to create an application that can detect incoming calls and start my custom activity after a certain number of beeps (rings), I mean after 2 or 3 or 5 beeps (rings) my activity is triggered. How can I do it? Thanks 回答1: I don't think you can count the number of rings the phone made since the start of the incoming call. There can't be a definitive measure of a single ring because the user can easily change the ringtone to a non-repetitive tune, for example, a song. What you can do,

How to change incoming call Vibration level when incoming call made?

廉价感情. 提交于 2019-12-20 03:13:06
问题 Somehow tricky question. I am working with one app through which user can set incoming call custom ringtone and different vibration level for different contacts. I have stuck with vibration level setting. We can set vibration level using, Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); // 1. Vibrate for 1000 milliseconds long milliseconds = 1000; v.vibrate(milliseconds); // 2. Vibrate in a Pattern with 500ms on, 500ms off for 5 times long[] pattern = { 500, 300 }; v

How to change incoming call Vibration level when incoming call made?

烂漫一生 提交于 2019-12-20 03:12:24
问题 Somehow tricky question. I am working with one app through which user can set incoming call custom ringtone and different vibration level for different contacts. I have stuck with vibration level setting. We can set vibration level using, Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); // 1. Vibrate for 1000 milliseconds long milliseconds = 1000; v.vibrate(milliseconds); // 2. Vibrate in a Pattern with 500ms on, 500ms off for 5 times long[] pattern = { 500, 300 }; v

How to detect a call Drop in android

南笙酒味 提交于 2019-12-20 01:49:07
问题 I'm writing an app that runs on background during a telephone conversation and logs the coordinates to a file after the conversation has end,I know Android telephony API can detect a call manual disconnect by user*(correct me,if I'm wrong)*, But what I want is to know whether the service disconnection have caused due to call drop,is there a way or an API I can use to achieve this, All what I need is to programmatically differentiate a disconnected call and a dropped call. Please help. 回答1:

Can't answer incoming call in android marshmallow 6.0

荒凉一梦 提交于 2019-12-18 04:36:06
问题 I'm creating a calling app. Here's Auto answer which works on android 4.0 and 5.0; whereas when i have an incoming call answer call button works but it doesn't work on android 6.0. I tested answer of this post but it doesn't work too : Answer Incoming Call in Android 6.0 IncomingActivity: @Override public void onClick(View v) { switch (v.getId()) { case R.id.imgaccept: { if (Build.VERSION.SDK_INT >= 21) { new Thread(new Runnable() { @Override public void run() { try { Runtime.getRuntime()

How to reject incoming call programatically in android? [duplicate]

依然范特西╮ 提交于 2019-12-17 17:59:54
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How to block calls in android Can any one tell me how to reject incoming call programatically in android ? 回答1: Let us implement this solution in 3 steps : a. Define this class or receiver : This is your main class : package com.sample; import java.lang.reflect.Method; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import

Rejecting Incoming call in android

我与影子孤独终老i 提交于 2019-12-17 08:51:55
问题 I want to reject incoming in android, I have seen so many code from these links. Android: Taking complete control of phone(kiosk mode), is it possible? How? How to Reject a call programatically in android http://androidsourcecode.blogspot.in/2010/10/blocking-incoming-call-android.html http://androidbridge.blogspot.com/2011/05/how-to-answer-incoming-call-in-android.html?showComment=1361478035090#c5468022990217431781 But I am still unable to do it, can anybody tell me in simple and easy steps

Rejecting Incoming call in android

大兔子大兔子 提交于 2019-12-17 08:51:13
问题 I want to reject incoming in android, I have seen so many code from these links. Android: Taking complete control of phone(kiosk mode), is it possible? How? How to Reject a call programatically in android http://androidsourcecode.blogspot.in/2010/10/blocking-incoming-call-android.html http://androidbridge.blogspot.com/2011/05/how-to-answer-incoming-call-in-android.html?showComment=1361478035090#c5468022990217431781 But I am still unable to do it, can anybody tell me in simple and easy steps