I am coming from iphone development where you cannot send an SMS in the background without asking the user to confirm the send. Can sms be sent in the background in android so that no user intervention is need?
相关问题
- 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
See http://thinkandroid.wordpress.com/2010/01/08/sending-sms-from-application/. You will need the appropriate permissions.
Send SMS with SMS-Delivery notification as toast.
method call as below.
method signature as below.
Now two more classes SmsDeliveredReceiver,SmsSentReceiver as below.
}
Now SMSSentReceiver.
}
Now Permissions open your AndroidManifest.xml and add below line
and its done.......
Yes you are able too.
Best answer is good but above API level 23 you will need to get the permission pragmatically. Otherwise permission will be prompted each time.