Hey, so I'm trying to use URL from the java.net.URL, to read the data from an API as a string using URL like this;
response = URL("https://api.openweathermap.org/data/2.5/weather?q=$CITY&units=metric&appid=$API").readText()
anyway everything should be working, but while debugging I can see...
Hi there,
So i wanted to add an menu with an image. So I made a new resource directory and called it menu. Then i did this:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">...
Hi there,
I am relatively new to developing an android app and wanted to make my button change text from Start to Stop, so I did the following:
start_button.setOnClickListener {
fun setStop() {
if (start_button.text == "Start") {
start_button.setText("Stop")
}
}...