How do I dial a number
programmatically from the Android application? I don't want to make a call, which I know I can do by making an intent: new Intent(Intent.ACTION_CALL)
, I just want to take the user to the Android dial prompt, with the number already input by passing it through the intent, so that she has the option to call that number herself.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Use
ACTION_DIAL
Like,
Activity Action: Dial a number as specified by the data. This shows a UI with the number being dialed, allowing the user to explicitly initiate the call.
This code will make a call without user interaction and will also pick up the default phone dialler
IF you wants the user to choose his dialler remove
If you want just to throw the number to the dialler and the user press the call button use this code (I believe thats what you are asking for )
Where the url is the phone number and dont forget to write the permission in the manifest file .
I had a similar problem which was solved by
Don't forget to add the relevant permission to your manifest:
Use the below code:
This code will dial your number without mobile phones default calling keypad: