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

Error in AndroidManifest.xml in Flutter App "Attribute class not Found"

AndroidManifest.xml showing me 10 errors in the code below. I am unable to understand why it is showing these errors and how can I resolve this. Help me out from these errors. <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.buis_talk"> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission…

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