What minimum Android Studio Gradle/Plugin versions required to target Android 30?
Is there any minimum recommended or required Gradle or Gradle Plugin versions if we intend to target Android 30?
Is there any minimum recommended or required Gradle or Gradle Plugin versions if we intend to target Android 30?
I'm trying to update my application to Android SDK 31 but I'm having an issue with MediaSessionCompat. I have a MediaService that extends the MediaBrowserServiceCompat() and in method onCreate of that service I initialise the MediaSessionCompat. override fun onCreate() {…
The Android docs give the following snippet for how to encrypt a message in AES: val plaintext: ByteArray = ... val keygen = KeyGenerator.getInstance("AES") keygen.init(256) val key: SecretKey = keygen.generateKey() val cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING") cipher.init(Cipher.ENCRYPT_MODE, key) val ciphertext: ByteArray =…
I have two activity, cartActivity and paymentActivity.When I click back in payment activity it has to go back to the cartActivity but instead the app is closing completely. I don't get any error also. override fun onBackPressed() { this.finish() }…
I have a music list obtained from: MusicDatabase.kt override fun getContentProviderValue(): MutableList<Songs> { val songList = mutableListOf<Songs>() val collection = sdk29AndUp { MediaStore.Audio.Media.getContentUri(MediaStore.VOLUME_EXTERNAL) } ?: MediaStore.Audio.Media.EXTERNAL_CONTENT_URI //Get songs from provider context.contentResolver.query( collection, projection, selection, null, PreferenceHelper.storeAllSongsSortOrder //Sort order. ).use {…
I have I time picker in my code and when I press the edit text it shows up and everything looks good but I want to set a default time for my time picker so when the user opens the…
I have a cartActivity and when I click the proceed button it goes to PaymentActivity. Now, If I click baack button from the paymentActivity I want to go back to the CartActivity. CartActivity class CartActivity : AppCompatActivity() { lateinit var…
I want to make a custom dialog that I can re-use to configure some parameters. I added a default hint that I want to modify each time the user opens the Dialog. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="match_parent"…
I can't launch widgets on android 11. This code works on my android 9 phone, but android 11 Google Pixel 3a emulator not working. what should I do for this. Ok, so what I want to do is create a…
So I am brand new to coding and I'm making an app in Android Studio in Kotlin and on the homepage of my app I have a button that is supposed to take me to another activity and every time…