telephonymanager
Need to call a activity in PhoneStateListener
I need to call a activity when the phone state comes from ringing to idle. But It says The constructor Intent(MyPhoneStateListener, Class) is undefined. How can call the activity.[详细]
2023-04-05 00:35 分类:问答Why might both the TELEPHONY_SERVICE and WIFI_SERVICE be unavailable on Android tablet?
I have a user with a Sprint Evo View 4G Tablet, and we have a feature that requires either the TELEPHONY_SERVICE or WIFI_SERVICE to be accessible to our app (and we of course request these permissions[详细]
2023-04-03 22:40 分类:问答Broadcastreceiver creating multiple instances of TelephonyManager
This is my BroadcastReceiver public class PlayAudio extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) {[详细]
2023-04-02 06:22 分类:问答Android 2.3.4 TelephonyManager
I updated my HTC Flyer to Android 2.3.4. Now I am not ab开发者_如何转开发le to retrieve the IMEI number through TelephonyManager.getDeviceId(). It always return null.[详细]
2023-03-28 21:32 分类:问答How to distinguish the screen on/off status while incoming call?
My app uses the TelephonyManager.ACTION_PHONE_STATE_CHANGED for some actions. But I want a different action while the phone rang when the user was present (screen was on) and different action when the[详细]
2023-03-23 16:24 分类:问答PhoneStateListener changes are not handled
I need to intercept changes in the signal strength on an android device. I\'ve seen different approaches arou开发者_如何学Pythonnd in StackOverflow. In my case, it\'s an Android Background Service tha[详细]
2023-03-20 20:47 分类:问答How to send fake call broadcast on android
I am trying to send a broadcast to simulate an incoming call. I added the permission in AndroidManifest.xml file,[详细]
2023-03-12 10:47 分类:问答What does the different Call states in the Android telephony stack represent?
The internal Android class com.android.internal.telephony.Call contains an enum called State and defined as follows:[详细]
2023-03-12 03:50 分类:问答Programmatically check if PIN lock is active in Android
Here\'s the thing - I\'m doing a securi开发者_开发知识库ty app that needs to be able to check if the PIN code is set or not. The official API returns the same value regardless of the PIN state, and I\[详细]
2023-03-06 09:58 分类:问答getting the current caller phone number WITHOUT using ACTION_PHONE_STATE_CHANGED
I have an application that needs to check whether there is an ongoing call from a specific contact. I know I can use the ACTION_PHONE_STATE_CHANGED broadcast intent to get the calling phone number at[详细]
2023-03-06 07:21 分类:问答