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
Back To Top
Search