android Programming Glossary: context.telephony_service
How can i turn off 3G/Data programmatically on Android? http://stackoverflow.com/questions/12535101/how-can-i-turn-off-3g-data-programmatically-on-android TelephonyManager context .getSystemService Context.TELEPHONY_SERVICE if telephonyManager.getDataState TelephonyManager.DATA_CONNECTED..
android device id confusion http://stackoverflow.com/questions/13744565/android-device-id-confusion If I use TelephonyManager Context.getSystemService Context.TELEPHONY_SERVICE .getDeviceId the result starts with 3538330... What is the difference..
Android : Check whether the phone is dual SIM http://stackoverflow.com/questions/14517338/android-check-whether-the-phone-is-dual-sim telephonyManager TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE telephonyInfo.imeiSIM1 telephonyManager.getDeviceId telephonyInfo.imeiSIM2.. telephony TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE try Class telephonyClass Class.forName telephony.getClass .getName.. telephony TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE try Class telephonyClass Class.forName telephony.getClass .getName..
How to make a phone call in android and come back to my activity when the call is done? http://stackoverflow.com/questions/1556987/how-to-make-a-phone-call-in-android-and-come-back-to-my-activity-when-the-call-i mTM TelephonyManager this.getSystemService Context.TELEPHONY_SERVICE mTM.listen callListener PhoneStateListener.LISTEN_CALL_STATE..
Retrieve incoming call's phone number in Android http://stackoverflow.com/questions/1853220/retrieve-incoming-calls-phone-number-in-android telephony TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE CustomPhoneStateListener customPhoneListener new CustomPhoneStateListener..
How to find serial number of Android device? http://stackoverflow.com/questions/2322234/how-to-find-serial-number-of-android-device tManager TelephonyManager myActivity.getSystemService Context.TELEPHONY_SERVICE String uid tManager.getDeviceId getSystemService is a method..
How can I programmatically obtain the number of the Android phone with the API? http://stackoverflow.com/questions/2480288/how-can-i-programmatically-obtain-the-number-of-the-android-phone-with-the-api tMgr TelephonyManager mAppContext.getSystemService Context.TELEPHONY_SERVICE mPhoneNumber tMgr.getLine1Number share improve this answer..
Communication between Android Java and Phonegap Javascript? http://stackoverflow.com/questions/2727763/communication-between-android-java-and-phonegap-javascript TelephonyManager tm TelephonyManager mGap.getSystemService Context.TELEPHONY_SERVICE String number tm.getLine1Number return number In your main activity..
Record phone calls on android phone? http://stackoverflow.com/questions/3370278/record-phone-calls-on-android-phone 1 telManager TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE catch Exception e e.printStackTrace final PhoneStateListener..
How to disable Mobile Data on Android http://stackoverflow.com/questions/3644144/how-to-disable-mobile-data-on-android TelephonyManager context .getSystemService Context.TELEPHONY_SERVICE if telephonyManager.getDataState TelephonyManager.DATA_CONNECTED..
Unique ID of Android device http://stackoverflow.com/questions/4468248/unique-id-of-android-device device. I've tried it with the following code String ts Context.TELEPHONY_SERVICE TelephonyManager telephonyManager TelephonyManager this.getSystemService..
TelephonyManager.getLine1Number() failing? http://stackoverflow.com/questions/5134398/telephonymanager-getline1number-failing this.getApplicationContext .getSystemService Context.TELEPHONY_SERVICE String phoneNumber tm.getLine1Number On my phone HTC Wildfire..
How to know whether I am in a call on Android? http://stackoverflow.com/questions/5948961/how-to-know-whether-i-am-in-a-call-on-android telephonyManager TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE telephonyManager.listen new CustomPhoneStateListener context..
Hang up outgoing call in Android http://stackoverflow.com/questions/599443/hang-up-outgoing-call-in-android tm TelephonyManager context .getSystemService Context.TELEPHONY_SERVICE try Java reflection to gain access to TelephonyManager's ITelephony..
How to get contacts from native phonebook in android http://stackoverflow.com/questions/6253029/how-to-get-contacts-from-native-phonebook-in-android mTelephonyMgr TelephonyManager getSystemService Context.TELEPHONY_SERVICE if mTelephonyMgr.getLine1Number .contains aContact.getPhoneNum..
Android: Taking complete control of phone(kiosk mode), is it possible? How? http://stackoverflow.com/questions/7121508/android-taking-complete-control-of-phonekiosk-mode-is-it-possible-how manager TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE Class c Class.forName manager.getClass .getName Method m c.getDeclaredMethod..
How to detect when phone is answered or rejected http://stackoverflow.com/questions/9684866/how-to-detect-when-phone-is-answered-or-rejected TelephonyManager tm TelephonyManager this.getSystemService Context.TELEPHONY_SERVICE tm.listen pscl PhoneStateListener.LISTEN_CALL_STATE separate..
How can i turn off 3G/Data programmatically on Android? http://stackoverflow.com/questions/12535101/how-can-i-turn-off-3g-data-programmatically-on-android ITelephonyStub Class ITelephonyClass TelephonyManager telephonyManager TelephonyManager context .getSystemService Context.TELEPHONY_SERVICE if telephonyManager.getDataState TelephonyManager.DATA_CONNECTED isEnabled true else isEnabled false telephonyManagerClass..
android device id confusion http://stackoverflow.com/questions/13744565/android-device-id-confusion Settings.Secure.ANDROID_ID the result starts with a96b4b27... If I use TelephonyManager Context.getSystemService Context.TELEPHONY_SERVICE .getDeviceId the result starts with 3538330... What is the difference between these ID s How can I get the result of the..
Android : Check whether the phone is dual SIM http://stackoverflow.com/questions/14517338/android-check-whether-the-phone-is-dual-sim null telephonyInfo new TelephonyInfo TelephonyManager telephonyManager TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE telephonyInfo.imeiSIM1 telephonyManager.getDeviceId telephonyInfo.imeiSIM2 null try telephonyInfo.imeiSIM1 getDeviceIdBySlot.. GeminiMethodNotFoundException String imei null TelephonyManager telephony TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE try Class telephonyClass Class.forName telephony.getClass .getName Class parameter new Class 1 parameter 0 int.class Method.. boolean isReady false TelephonyManager telephony TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE try Class telephonyClass Class.forName telephony.getClass .getName Class parameter new Class 1 parameter 0 int.class Method..
How to make a phone call in android and come back to my activity when the call is done? http://stackoverflow.com/questions/1556987/how-to-make-a-phone-call-in-android-and-come-back-to-my-activity-when-the-call-i code EndCallListener callListener new EndCallListener TelephonyManager mTM TelephonyManager this.getSystemService Context.TELEPHONY_SERVICE mTM.listen callListener PhoneStateListener.LISTEN_CALL_STATE Listener definition private class EndCallListener extends PhoneStateListener..
Retrieve incoming call's phone number in Android http://stackoverflow.com/questions/1853220/retrieve-incoming-calls-phone-number-in-android context Intent intent Log.v TAG WE ARE INSIDE TelephonyManager telephony TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE CustomPhoneStateListener customPhoneListener new CustomPhoneStateListener telephony.listen customPhoneListener PhoneStateListener.LISTEN_CALL_STATE..
How to find serial number of Android device? http://stackoverflow.com/questions/2322234/how-to-find-serial-number-of-android-device serial number share improve this question TelephonyManager tManager TelephonyManager myActivity.getSystemService Context.TELEPHONY_SERVICE String uid tManager.getDeviceId getSystemService is a method from the Activity class. getDeviceID will return the MDN or..
How can I programmatically obtain the number of the Android phone with the API? http://stackoverflow.com/questions/2480288/how-can-i-programmatically-obtain-the-number-of-the-android-phone-with-the-api
Communication between Android Java and Phonegap Javascript? http://stackoverflow.com/questions/2727763/communication-between-android-java-and-phonegap-javascript mAppView view mGap gap public String getTelephoneNumber TelephonyManager tm TelephonyManager mGap.getSystemService Context.TELEPHONY_SERVICE String number tm.getLine1Number return number In your main activity add a Javascript interface for this class public class..
Record phone calls on android phone? http://stackoverflow.com/questions/3370278/record-phone-calls-on-android-phone pathname recorder.prepare recorder.start recordstarted 1 telManager TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE catch Exception e e.printStackTrace final PhoneStateListener phoneListener new PhoneStateListener @Override public..
How to disable Mobile Data on Android http://stackoverflow.com/questions/3644144/how-to-disable-mobile-data-on-android ITelephonyStub Class ITelephonyClass TelephonyManager telephonyManager TelephonyManager context .getSystemService Context.TELEPHONY_SERVICE if telephonyManager.getDataState TelephonyManager.DATA_CONNECTED isEnabled true else isEnabled false telephonyManagerClass..
Unique ID of Android device http://stackoverflow.com/questions/4468248/unique-id-of-android-device ID of Android device I want some unique ID of the Android device. I've tried it with the following code String ts Context.TELEPHONY_SERVICE TelephonyManager telephonyManager TelephonyManager this.getSystemService ts However I know that this works only for phones...
TelephonyManager.getLine1Number() failing? http://stackoverflow.com/questions/5134398/telephonymanager-getline1number-failing of android device. I use this code TelephonyManager tm TelephonyManager this.getApplicationContext .getSystemService Context.TELEPHONY_SERVICE String phoneNumber tm.getLine1Number On my phone HTC Wildfire I can not get phone number all I get is empty string. If I..
How to know whether I am in a call on Android? http://stackoverflow.com/questions/5948961/how-to-know-whether-i-am-in-a-call-on-android onReceive Context context Intent intent TelephonyManager telephonyManager TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE telephonyManager.listen new CustomPhoneStateListener context PhoneStateListener.LISTEN_CALL_STATE And one class to customize..
Hang up outgoing call in Android http://stackoverflow.com/questions/599443/hang-up-outgoing-call-in-android have summarized below. Obtaining the ITelephony object TelephonyManager tm TelephonyManager context .getSystemService Context.TELEPHONY_SERVICE try Java reflection to gain access to TelephonyManager's ITelephony getter Log.v TAG Get getTeleService... Class c Class.forName..
How to get contacts from native phonebook in android http://stackoverflow.com/questions/6253029/how-to-get-contacts-from-native-phonebook-in-android phone.moveToNext TelephonyManager mTelephonyMgr mTelephonyMgr TelephonyManager getSystemService Context.TELEPHONY_SERVICE if mTelephonyMgr.getLine1Number .contains aContact.getPhoneNum contactList.add aContact phone.close contacts.close..
Android: Taking complete control of phone(kiosk mode), is it possible? How? http://stackoverflow.com/questions/7121508/android-taking-complete-control-of-phonekiosk-mode-is-it-possible-how and disconnect the call programmatically try TelephonyManager manager TelephonyManager context.getSystemService Context.TELEPHONY_SERVICE Class c Class.forName manager.getClass .getName Method m c.getDeclaredMethod getITelephony m.setAccessible true ITelephony..
How to detect when phone is answered or rejected http://stackoverflow.com/questions/9684866/how-to-detect-when-phone-is-answered-or-rejected PhoneStateChangeListener pscl new PhoneStateChangeListener TelephonyManager tm TelephonyManager this.getSystemService Context.TELEPHONY_SERVICE tm.listen pscl PhoneStateListener.LISTEN_CALL_STATE separate class private class PhoneStateChangeListener extends PhoneStateListener..
|