Menu
  • HOME
  • TAGS

Answer phone call

android,telephonymanager

Intercepting calls only works from 2.2 - 4.0. Google has blocked the MODIFY_PHONE_STATE permission for anyone except for phone manufacturer certificates Google has restricted intercepting calls as a security feature. In short, you're not allowed to do this on purpose. You can see it here in the Android developer documentation:...

How to identify a call is disconnected when there are multiple calls in Android

java,android,telephonymanager

This is not an answer to solve your problem. But, it definitely adds value to the solution What is CALL_STATE_IDLE ? Device call state: No activity. So, we shouldn't expect it to send CALL_STATE_IDLE state when there is an active line. That's why the event CALL_STATE_IDLE is broadcasted only when...

Voice Call recording in android using MediaRecorder

android,mediarecorder,telephonymanager

I also had the same doubt a year ago AudioSource.VOICE_CALL not working in android 4.0 but working in android 2.3 recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); works on limited devices ,it will give exception only on that device in which voice call is not supported so catch the exception and start the recording from mic...

Android dual SIM signal strength

android,telephonymanager,signal-strength,dual-sim

Thanks for the answer headuck! I have not tried your solution, but i found my own solution which worked. It is possible to use a different constructor for the TelephonyManager where you can pass in the sim card slot you want control over: MultiSimClass = Class.forName("android.telephony.MultiSimTelephonyManager"); for (Constructor<?> constructor :...

Detect age of network need for Google Maps Geolocation API

android,google-maps,google-maps-api-3,android-wifi,telephonymanager

You can use AsyncTask to do the network request. Sample Code: private class GetGeolocationTask extends AsyncTask<Object, Void, String> { @Override protected String doInBackground(Object... arg0) { InputStream inputStream = null; String result = ""; try { // 1. create HttpClient HttpClient httpclient = new DefaultHttpClient(); // 2. make POST request to...

Not Able to Get Country Where User is Using My Android Application

android,android-activity,android-studio,telephonymanager

Well I found a better solution for this. By using This api I can get All the details about User Current Location And Country. Here is the API API to Get Country...

how to listen for a call disconnect on android?

android,broadcastreceiver,telephonymanager

Please try this link it have some documentation regarding android.telephony Package Hope this will help you...

Getting IMEI and Telephone Number without Application Context

android,telephonymanager

There isn't a workaround for getting phonenumbers without the Context because the Context is your gateway into the users phone. It gives you access to storage, Location, display, almost everything. If you use the phonenumber a lot I think you should make a getter for it in the mainActivity, that's...

Restart android app on incoming call

android,android-service,telephonymanager

Use action PHONE_STATE to detect incoming calls.. add this to manifest <receiver android:name="com.example.YourReceiver" > <intent-filter> <action android:name="android.intent.action.PHONE_STATE" /> </intent-filter> </receiver> And your receiver public class YourReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(TelephonyManager.EXTRA_STATE_RINGING)) { // This code will execute when the phone has an...

The method getAllCellInfo() is undefined for the type TelephonyManager [Android]

android,eclipse,undefined,telephonymanager,cellinfo

Check your project.properties file and look at the target you are building against. It should look something like this: target=Google Inc.:Google APIs:17 This is an old project I had on hand which was building for API 17 (with Google APIs.) You can also go into the Project properties and check...

Do I need a data connection in order to get TELEPHONY_SERVICE?

android,telephonymanager

You can always getSystemService(Context.TELEPHONY_SERVICE). On a device without radio hardware, getDeviceId() will return NULL. On a device with a cellular radio, you will get the IMEI/MEID/ESN even if if you disable it (i.e., airplane mode, no SIM, etc.). In an Android Virtual Device (AVD, a/k/a emulator), getDeviceId() returns an IMEI...