android-searchmanager
When is it necessary to use singleTop launchMode in an android widget or application?
I did more reading in Android Docs — I could spend a lifetime reading their docs and find a new subtle detail that breaks my brain 🙂 This explains my multiple-instances that I did not expect, however, I configured to occur. Android Doc on Activity definition for AndroidManifest.xml The “standard” and “singleTop” modes differ from … Read more
SearchView getActionView returning null
I had the same problem because in my menu I used: android:actionViewClass=”android.widget.SearchView” as per the google documentation. Well it turns out that if I’m using AppCompatActivity I should use app:actionViewClass=”android.widget.SearchView” instead.
Android search with Fragments
In short, you can’t. There are a couple of reasons why creating a search interface within a Fragment is not possible. When creating a searchable interface, you must specify a default “searchable activity” in your Android manifest. As I’m sure you know, a Fragment cannot exist without a parent Activity and thus, this separation is … Read more