Category Software Development

Load PDF From URL in Android with Kotlin

package deal com.gtappdevelopers.kotlingfgproject    import android.os.AsyncTask import android.os.Construct import android.os.Bundle import androidx.annotation.RequiresApi import androidx.appcompat.app.AppCompatActivity import com.github.barteksc.pdfviewer.PDFView import java.io.BufferedInputStream import java.io.InputStream import java.internet.HttpURLConnection import java.internet.URL import javax.internet.ssl.HttpsURLConnection    class MainActivity : AppCompatActivity() {                      lateinit var pdfView: PDFView   …

Authentication with API Key in Java

import static java.nio.charset.StandardCharsets.UTF_8;    import java.safety.MessageDigest; import java.safety.NoSuchAlgorithmException; import java.sql.*; import java.time.LocalDate; import java.time.format.DateTimeFormatter; public class CreateAndUpdateAPIKey {     Connection conn;          public String generateMD5Hashvalue(String userName)     {         LocalDate dateObj = LocalDate.now();         DateTimeFormatter formatter             = DateTimeFormatter.ofPattern(“yyyyMMdd”);         String date = dateObj.format(formatter);            MessageDigest…