-
Sending SMS in Android application with Kotlin
Add SEND_SMS permission in your manifest. <uses-permission android:name=”android.permission.SEND_SMS” /> Import SmsManager import android.telephony.SmsManager Requesting permission val PERMISSION_REQUEST = 101; ActivityCompat.requestPermissions( this, arrayOf(Manifest.permission.SEND_SMS), PERMISSION_REQUEST ) Checking if permission was allowed val SMSpermissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.SEND_SMS) if (SMSpermissionCheck == PackageManager.PERMISSION_GRANTED) { //Woohoo! You got permission to send the SMS. } Finally sending the SMS val myNumber = […]
-
How to install PowerDNS on CentOS with MySQL backend
PowerDNS is one of the famous DNS software after BIND, which unlike BIND comes with many backends like MySQL, PostgreSQL, SQLite3 and etc. It can run both as an authoritive nameserver or as a recursor. The latest PowerDNS version is 4.2 at the time of writing this article. This article will cover how to install […]