skip to Main Content

Android Studio – Popup dialog spinner with bondedDevices is null

When trying to make a popup dialog with paired bluetooth devices in a spinner, my app crashes upon opening. See this code for the xml layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="10dp"> <Spinner android:id="@+id/spinner_devices" android:layout_width="match_parent" android:layout_height="wrap_content"/> <Button…

VIEW QUESTION

Android Studio – How is defined MediaRecorder( )?

i make program for record audio for android but i find MediaRecorder() Deprecated kotlin code package noteapp.notesnotesnotescairo.mynoteapp import android.Manifest import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.content.pm.PackageManager import android.icu.text.SimpleDateFormat import android.media.MediaRecorder import android.os.Build import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.os.Looper import…

VIEW QUESTION
Back To Top
Search