Skip to content

Instantly share code, notes, and snippets.

View rakaadinugroho's full-sized avatar
✍️
Writing a Book

Raka Adi Nugroho rakaadinugroho

✍️
Writing a Book
View GitHub Profile
@rakaadinugroho
rakaadinugroho / postgres.md
Created September 14, 2022 01:41 — forked from phortuin/postgres.md
Set up postgres + database on MacOS (M1)

Based on this blogpost.

Install with Homebrew:

$ brew install postgresql

Run server:

@rakaadinugroho
rakaadinugroho / newActivityFromSearchView.md
Created May 23, 2018 08:09 — forked from vxhviet/newActivityFromSearchView.md
Start new activity from SearchView

Source: StackOverflow

This answer is a little late but I feel it'll be useful for future viewers. The dilemma seems to come from the ambiguity of the Android SearchView tutorial. The scenario they cover assumes you will be displaying the results in the same Activity the SearchView resides. In such a scenario, the Activity tag in the AndroidManifest.xml file would look something like this:

<activity
    android:name=".MainActivity"
    android:label="@string/main_activity_label"
    android:launchMode="singleTop">
        <intent-filter>