incoming-call

dialog over lock incoming call screen

时光总嘲笑我的痴心妄想 提交于 2019-12-13 22:17:06
问题 I want that both dialog and incoming call screen be clickable. I have tried different solutions from this site, but some works in some condtions and others don't. I want to create an app like true caller, I have called an activity from BroadcastReceiver . My code works perfectly when the screen is not locked because the incoming screen is not full screen. But when the screen is full screen the dialog activity appears for few milliseconds over the calling screen and then goes behind the

Intercepting incoming calls on iPhone

守給你的承諾、 提交于 2019-12-12 09:07:20
问题 I would like to write software for my iPhone that intercepts incoming calls, and requires that the caller press "1" to proceed with the call. (This is for fighting telemarketers.) I would prefer to write the software myself, and not install an app like Hiya. I have a regular phone number assigned by my carrier (no fancy Google Voice or VOIP stuff), and I use the standard "Phone" app. My phone is not jail-broken. What's the simplest way to intercept an incoming call to the standard "Phone" app

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

匆匆过客 提交于 2019-12-03 21:46:25
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 anybody who faced this kind of issue before ? Any help will be appreciated. Thanks. JstnPwll Perhaps a

How to detect and manage incoming call (Android)?

倾然丶 夕夏残阳落幕 提交于 2019-12-03 20:43:35
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 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, however, is count the amount of time that passed since the arrival of the call. Set up a BroadcastReceiver for

How to detect a call Drop in android

混江龙づ霸主 提交于 2019-12-01 23:56: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. jobin Try this code, but I am not sure.. private getCallFailedString(Call call) { Phone phone = PhoneApp

BLE device keep connect with iPhone when application terminate

懵懂的女人 提交于 2019-12-01 02:02:08
问题 I got a problem with BLE on iOS. My case as below: I'm developing application connect to device BLE 4.0. My problem is incoming call function. The scenario of this function is after connected between device BLE and application, when phone is received a phone call, my application will send data to BLE device and make it vibrate and light blinking. Current I tried 4 case below, but successful in 3 case and the rest case is fail: Case 1:(successful) When app on Foreground --> Incoming call -->

android.permission.ANSWER_PHONE_CALLS How I can use? for auto answer

隐身守侯 提交于 2019-12-01 01:15:18
As per android developer documentation Android 8.0 (API level 26) introduces several new permissions related to telephony: The ANSWER_PHONE_CALLS permission allows your app to answer incoming phone calls programmatically. To handle an incoming phone call in your app, you can use the acceptRingingCall() method. How my app give voice answer to incoming call ? but I have not found any guide or examples about of this . so I want automatic answer with voice(from raw folder in app) (I have need guide or example code like answering machine) https://developer.android.com/reference/android/telecom

android.permission.ANSWER_PHONE_CALLS How I can use? for auto answer

强颜欢笑 提交于 2019-11-30 19:58:30
问题 As per android developer documentation Android 8.0 (API level 26) introduces several new permissions related to telephony: The ANSWER_PHONE_CALLS permission allows your app to answer incoming phone calls programmatically. To handle an incoming phone call in your app, you can use the acceptRingingCall() method. How my app give voice answer to incoming call ? but I have not found any guide or examples about of this . so I want automatic answer with voice(from raw folder in app) (I have need

Can't answer incoming call in android marshmallow 6.0

雨燕双飞 提交于 2019-11-29 05:51:57
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().exec( "input keyevent " + KeyEvent.KEYCODE_HEADSETHOOK ); Intent intent = new Intent(getApplicationContext

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

余生长醉 提交于 2019-11-28 06:06:51
Possible Duplicate: How to block calls in android Can any one tell me how to reject incoming call programatically in android ? Darshan Dwarkanath 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 android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.telephony.TelephonyManager; import