Questions tagged [telephonymanager]

Telephony class for Android devices

A class that provides access to information about the telephony services on an Android device

781 questions
-1
votes
2 answers

SMS Messages of a particular number not showing up on other devices Android

I am using the Telephony.Sms library to load in received and sent sms messages for the app I am working on. When I set the query selection to null (the third item in the query), it will show all the sent and received sms messages on the different…
-1
votes
1 answer

How to programmatically obtain the mobile number from the current device?

I want to obtain mobile number from device for registration page. I used TelephonyManager but its not working in all devices and I also used GoogleApiClient with HintRequest in this service open dialogbox to select mobile number but its looking…
-1
votes
1 answer

Is there anyway to make my custom UI for incoming and outgoing calls in Android?

I want to develop an app from which user should be able to make a call But I don't want to trigger system phone app to make a call. I would rather like to have my own UI for outgoing calls and also for incoming calls. That being said, I want my app…
Varun A M
  • 1,103
  • 2
  • 14
  • 29
-1
votes
2 answers

Unable to find SMS permission in android studio

I am unable to find android.provider.Telephony action in android studio for creating an app that can receive SMS. Almost every article including android developer says that I have to include a intent filter action…
-1
votes
1 answer

Is there a way to know if phone have an active call?

I already tried TelephonyManager, PhoneStateListener. What I need is a method will return the current state of the phone.
A.Cem
  • 3
  • 1
-1
votes
2 answers

Check Phone Call State Android

In my application I am calling some phone numbers progrmatically. is there any way i can check if the call beep is going and connection is established to ensure the validity of a phone number and end call before pick up.
Mehvish Ali
  • 732
  • 2
  • 10
  • 34
-1
votes
2 answers

How to get country code in Android

How to get country code like +91 for India and +1 for US. This is my code, TelephonyManager manager = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE); String CountryID= manager.getSimCountryIso().toUpperCase(); Above code…
Aveen
  • 11
  • 1
-1
votes
1 answer

Call() is not public in android.telecom.Call, Cannot be accessed from outside package

I have the next class within SDK23 which should support playDtmfTone() : import android.telecom.Call; public class myDtmf { public void myPlayDtmfTone() { Call mytone = new Call(); // error here for Call() …
-1
votes
1 answer

I have implemented this code in broadcastreceiver class to notify the user for not attending the call while charging.... but its not working

public class MyReceiver extends BroadcastReceiver { private Context mcontext; TelephonyManager telephonyManager = (TelephonyManager) mcontext.getSystemService(Context.TELEPHONY_SERVICE); public void onReceive(Context context,…
-1
votes
2 answers

Which AudioFocus do I need to set for an alarm application

From this blog I learned that, for all media applications, I should request AudioFocus and start the playback only if the AudioFocus is…
Yarh
  • 4,459
  • 5
  • 45
  • 95
-1
votes
1 answer

interpretation of List informations

i developed a mini application that get back the neighbours cells informations, i used telephonymanager class. I got the information bellow, my problem is that i cant interpret its : 07-03 10:40:25.044 …
DGz
  • 109
  • 2
  • 6
-1
votes
2 answers

Finding unique ID for android phone devices

Does TelephonyManager. getDeviceId () returns different ID If user changes his mobile network in settings from GSM to CDMA , WCDMA (or vice versa from CDMA to GSM ) ? Or does TelephonyManager. getDeviceId () returns an IMEI id when network…
ygngy
  • 3,630
  • 2
  • 18
  • 29
-1
votes
1 answer

how to add List to Array List in android?

I am getting the getNeighboringCellInfo() using TelephonyManager .I want list out the neighboringcells details in the listview.I successfully getting the neighboringcells but I could't display in the list view Please help me solve this…
reegan29
  • 920
  • 1
  • 12
  • 30
-1
votes
1 answer

What is the easiest way to get standard network type on Android?

I know how to Get Network type. But I need to identify the related standard to each release, grouping by GSM, WCDMA and LTE (others standards will not be used). I could filter it like this: switch (networkType) { case…
emartinelli
  • 1,019
  • 15
  • 28
-1
votes
1 answer

Possible ways of geting Sim State as UNKNOWN

Can anybody explain, what are possible ways of getting Sim State as UNKNOWN.
user2107111
  • 735
  • 1
  • 6
  • 10