Android Studio – How do I save an imageview into the gallery?
I want a button to be clicked that saves an image view to the android devices gallery in kotlin. I have this val image = findViewById<ImageView>(R.id.QRImage)
I want a button to be clicked that saves an image view to the android devices gallery in kotlin. I have this val image = findViewById<ImageView>(R.id.QRImage)
Currently I am using a string array to hold some data that is used by my adapter, but I need to use the data in a listof: Currently I am using this: <string-array name="vegetables"> <item> Onion </item> <item> Chillis </item>…
I'm trying to make a calculator in Android Studio with Kotlin and I trying to allow users to make numbers negative and positive, but I got only half of it, making number negative, but can't make it so it turns…
Hello Developers , I am trying to build a bottomsheet in android studio by the help of a YouTube video. But in the video the youtuber use kotlin and I don't know kotlin. I have already complete the layout part…
I have the following layout code in my xlm, to call my recycler view in my status fragment <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".fragments.Status"> <androidx.swiperefreshlayout.widget.SwipeRefreshLayout android:id="@+id/swipeToRefresh" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/statusRecyclerView" android:layout_width="match_parent" android:layout_height="match_parent"…
I'm trying to create a quiz app with a database with two tables one for topics and one for the questions. The topicsID is a Foreign key in my questions table. I want to retrieve 2 random questions from each…
I am using this API as a test for obtaining JSON API data. I know how to obtain the data of one of the values "grnd_level" in "list". Here is the code I used to obtain the "grnd_level" value: val…
I need to use Mumu player emulator in android studio. I forgot how to paste mumu players adb,xe files into android studio SDK platorm. If you know about it, I would really appreciate.
I want to select a file, but in Android 11 I either do not have access to the files and either the downloaded file is empty These are my codes
Why the lines are crossed out and the error where the dot is I don't understand package com.ggenius.whattowearkotlin.data.network import android.content.Context import android.net.ConnectivityManager import com.ggenius.whattowearkotlin.internal.NoConnectivityException import okhttp3.Interceptor import okhttp3.Response class ConnectivityInterceptorImpl( context: Context? ) : ConnectivityInterceptor { private val appContext =…