Android: Create a Custom Dialog Window with Dialog.builder

In the previous tutorial I showed you how you can inflate an activity based on a item selection within a ListView. The content was stored in Arrays and thus it saved you a lot of time by not creating numerous of different activities (for each item in your ListView). In that tutorial we also used a dialog window to show the location of the Dutch provinces. I was not completely satisfied how we implemented it. Therefore in this tutorial we will create a custom Dialog window based on the Android Dialog.Builder. In case you missed the previous tutorial click here.

Continue reading