https://kotlinlang.org logo
#getting-started
Title
# getting-started
w

Will Nixon

08/23/2020, 11:57 PM
Is there a way to see if a device is capable of making telephone calls? Either to cell or landline? I know, in theory, someone with Skype installed could make calls through that, but I just want to check the main phone capabilities, and then hide a list of contact buttons should the device not be capable of making calls
google 1
stackoverflow 1
Yep, tried google / stack overflow but all articles seem to be very old and I was assuming there might be more up to date / clearer ways of doing so. Anything I tried so far gave me false positives in the emulator (assuming the emulator would count as something that can’t make phone calls) - maybe I’m wrong there
p

pedro

08/24/2020, 11:26 AM
I haven’t done this but you could try to create an intent to make a phone call and see if there’s a handler - maybe a default handler - for that