calllog

how to stop phone calls to be log in the call log on android

六月ゝ 毕业季﹏ 提交于 2019-12-11 01:14:23
问题 I'm writing an application that block some phone calls. I use a broadcast receiver to listen to incoming calls: <receiver android:name="InComingCallReceiver"> <intent-filter android:priority="100"> <action android:name="android.intent.action.PHONE_STATE"></action> </intent-filter> </receiver> And I cancelled the calls I don't want: TelephonyManager telephony = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); try { Class c = Class.forName(telephony.getClass().getName());

How can I access call log history on IOS5

非 Y 不嫁゛ 提交于 2019-12-10 19:09:14
问题 I used FMDatabase and this path (/private/var/wireless/Library/CallHistory/call_history.db) to access the call logs on IOS4. After I updated to IOS5, it just gave me a "permission denied" exception. I know the call log file is there, just apple remove the permission. So I am thinking, is there anyway we can push the call log file to ICloud and take it back to our application? Or use CoreTelephony framework to get the CallID first, and use that ID to point somewhere and get the call detail

Calllogs returning all logs calls as well as sms logs, how can i filter only call logs?

杀马特。学长 韩版系。学妹 提交于 2019-12-10 04:06:23
问题 I am trying to get all the Call-Logs excluding SMS but i get a merged list. How can i filter call logs for calls only? I am using following code. String[] strFields = { android.provider.CallLog.Calls.NUMBER, android.provider.CallLog.Calls.TYPE, android.provider.CallLog.Calls.CACHED_NAME, android.provider.CallLog.Calls.CACHED_NUMBER_TYPE, android.provider.CallLog.Calls.DATE }; String strOrder = android.provider.CallLog.Calls.DATE + " DESC"; Uri calluri = Uri.parse("content://call_log/calls");

CallLog.Calls.CACHED_NAME is always returning null for some saved contacts

天大地大妈咪最大 提交于 2019-12-09 19:06:20
问题 I am trying to show the call log details in my app but CallLog.Calls.CACHED_NAME is always returning null for some contacts even if it is a saved contact with name. The built-in call log is showing the names for these contacts correctly. This is my code: protected customAdapRecent doInBackground(Void... params) { ContentResolver resolver = context.getContentResolver(); final String[] PROJECTION = new String[] { // CallLog.Calls.CACHED_LOOKUP_URI, CallLog.Calls.NUMBER, CallLog.Calls.CACHED

Call logs for dual sim android device

折月煮酒 提交于 2019-12-09 01:31:27
问题 I am using the below code to get the call log details which is working very fine for single SIM device, but the problem arises when it comes to the DUAL sim. I am trying to find work around for getting logs from dual sim device. /** * Get All Call Logs details as JSON * * @param context */ @SuppressLint("SimpleDateFormat") private void getInitialCallDetailsAsJSON() { // Print dates of the current week starting on Monday DateFormat df = new SimpleDateFormat("dd-MMM-yyyy hh:mm aa", Locale

Call logging with Dual SIM

吃可爱长大的小学妹 提交于 2019-12-08 13:44:44
问题 I'm developing an application for Android 2.3.4. This app gets all calls in call log and sends them to a server. The app works very well but now I have a problem. I have to add the Dual SIM option. I've looked around and it seems that Android mixes the call log register of the both SIMs. Well, since I have to get only log of 1 SIM, how can I do that? Can Android do something like that (determining on call log which SIM got called) or do I have to change Android version? 回答1: Any application

How to load call logs faster like other apps and display like attached image

心已入冬 提交于 2019-12-08 09:21:37
问题 I have used following query to load call logs of current month from device, for me its taking 2.5 to 3.5 seconds to load complete and store into sq-lite database CallLogHelper Class public static Cursor getAllCallLogs(ContentResolver cr) { String[] PROJECTION = new String[]{ CallLog.Calls.NUMBER, CallLog.Calls._ID, CallLog.Calls.CACHED_NAME, CallLog.Calls.DATE, CallLog.Calls.TYPE, CallLog.Calls.DURATION}; Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.MONTH, -1); Date

how to find outgoing number in Telephony manager

a 夏天 提交于 2019-12-07 04:43:39
问题 I am using this: public void onCallStateChanged(int state, String incomingNumber) which is listening to: telephonyManager.listen(listener,PhoneStateListener.LISTEN_CALL_STATE); I want to know both outgoing and incoming calls but for now I only get incoming calls (when state changes is ringing). Can anyone tell me when can I detect outgoing call and its end Also is there a way to simulate outgoing calls in Eclipse emulator. was able to do that for incoming calls via emulator control in eclipse

Get the SIM number used on a call through the call log of Android

半腔热情 提交于 2019-12-06 15:32:46
I know Android SDK is big mess for dual SIM support, but stock dialer shows this information on call log which SIM card ( 1 or 2) was used in a call. I guess it´s stored on call log default database and just want to know if it is possible to retrieve it as simple as possible. I don´t need to know if the SIM is the current one in use. By the way, probably the call log became3s a big mess if you change the Sim cards... but it is another subject and does not matter for me (at the moment ;-) My questions: 1- Is it possible to get it ? 2- Is it a simple query on the file/database? I found an app

Android showing device Call-Log screen after call gets finished/End [duplicate]

这一生的挚爱 提交于 2019-12-06 12:52:36
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to make a phone call in android and come back to my activity when the call is done? I am trying to make/initiate call using (Uri with Intent) following code in Android on Nexus-S: Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:"+phoneNo)); startActivity(callIntent); On Nexus-S after call gets finished it is showing Device Call Logs screen instead of going back to my