0

I am new to kotlin, I was wondering how to make a get HTTP request onCreate function

package com.example.kotlin

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        //http request here
    }
}
Mike
  • 43
  • 1
  • 7
  • Visit this page https://stackoverflow.com/questions/3505930/make-an-http-request-with-android hope you'll get your answer there.. – Aasif Shaikh Jan 10 '23 at 13:05

0 Answers0