Tag Archives: PreferenceActivity

How to Create Preferences Settings in your app using Android Built-in Settings Preference APIs

By | October 10, 2017

There is often a settings page when we make our app and most of the people end up making it using their own UI. But interestingly Android provides API specific for building preferences using your own values. Check the below UI for my settings Lets see how that is done. Using Preference Headers Preference Headers displays only the… Read More »

How to use Preferences in android?

By | February 9, 2012

Hello all… Today I will show you how to use preferences in android? First we will create preferences using [java] EditTextPreference [/java] Create a folder named “xml” inside the “res” folder and inside that create an xml named “preferences.xml”. [xml] <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <EditTextPreference android:title="User Name" android:key="username" android:summary="Please enter username"> </EditTextPreference> <EditTextPreference android:title="Password" android:password="true" android:key="password" android:summary="Please… Read More »