iPhone call log / history

Sorry but right now it really can’t be done.. On iOS 5 there isn’t any access to call_history.db -> Which is exactly what you were looking for. The app mentioned here: http://itunes.apple.com/us/app/callog/id327883585?mt=8 Does not work with iOS 5 (don’t download but check the users’ reviews..) On iOS 4, you might still be able to get … Read more

Detecting outgoing call and call hangup event in android

You should create a BroadcastReceiver: public class CallReciever extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals( TelephonyManager.EXTRA_STATE_RINGING)) { // Phone number String incomingNumber = intent.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER); // Ringing state // This code will execute when the phone has an incoming call } else if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals( TelephonyManager.EXTRA_STATE_IDLE) || intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals( TelephonyManager.EXTRA_STATE_OFFHOOK)) { // … Read more

Making a phone call in an iOS application

Yup. You need to take those out yourself. Or you can use the snippet below… NSString *cleanedString = [[phoneNumber componentsSeparatedByCharactersInSet:[[NSCharacterSet characterSetWithCharactersInString:@”0123456789-+()”] invertedSet]] componentsJoinedByString:@””]; NSURL *telURL = [NSURL URLWithString:[NSString stringWithFormat:@”tel:%@”, cleanedString]]; Note: you may be tempted to use -stringByTrimmingCharactersInSet:, but that one only removes characters at the start and the end of the string, not if … Read more

How can I record voice and record Call in Android? [closed]

Yes It is possible just do this final MediaRecorder callrecorder = new MediaRecorder(); callrecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); callrecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); callrecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); callrecorder.setOutputFile(filepath); try { callrecorder.prepare(); } catch (IllegalStateException e) { System.out.println(“An IllegalStateException has occured in prepare!”); // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { //throwing I/O Exception System.out.println(“An IOException has occured in prepare!”); // TODO Auto-generated catch … Read more

End call in android programmatically

You do not need to be a system app. First, create package com.android.internal.telephony in your project, and put this in a file called “ITelephony.aidl“: package com.android.internal.telephony; interface ITelephony { boolean endCall(); void answerRingingCall(); void silenceRinger(); } Once you have that, you can use this code to end a call: TelephonyManager telephonyManager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); Class clazz … Read more

Detecting whether or not device support phone calls?

The iPhone supports the tel:// URI scheme. So you could use: [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”tel://”]]; canOpenURL: explicitly checks whether there’s an application capable of opening that URL scheme, not that the URL is correct. So it doesn’t matter that no phone number is specified. The method returns a BOOL, so check that for YES or … Read more

make a phone call click on a button

Have you given the permission in the manifest file <uses-permission android:name=”android.permission.CALL_PHONE”></uses-permission> and inside your activity Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse(“tel:123456789”)); startActivity(callIntent); Let me know if you find any issue.

How to block calls in android

OMG!!! YES, WE CAN DO THAT!!! I was going to kill myself after severe 24 hours of investigating and discovering… But I’ve found “fresh” solution! // “cheat” with Java reflection to gain access to TelephonyManager’s // ITelephony getter Class c = Class.forName(tm.getClass().getName()); Method m = c.getDeclaredMethod(“getITelephony”); m.setAccessible(true); telephonyService = (ITelephony)m.invoke(tm); all all all of hundreds … Read more

URL Scheme for Phone Call

The official standard for providing a telephone number as a URI is here: http://www.ietf.org/rfc/rfc3966.txt It basically says use tel: as the prefix, and start the number with +[international dialling code] before the number itself. You can put non-numeric characters as separators (e.g. -) but they must be ignored. So a London (UK) number might be: … Read more