@@ -0,0 +1,1683 @@
+package com.oasisfeng.ui;%0A%0Aimport android.annotation.TargetApi;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.os.Build;%0Aimport android.os.Bundle;%0Aimport android.preference.PreferenceActivity;%0Aimport android.preference.PreferenceFragment;%0A%0A/**%0A * A helper class to simply build an %22About%22 dialog.%0A *%0A * %3Cp%3EDeclare the activity in AndroidManifest.xml:%0A * %3Cpre%3E%0A       &lt;activity android:name=%22com.oasisfeng.ui.About%22%0A           android:theme=%22@android:style/Theme.Holo.DialogWhenLarge.NoActionBar%22&gt;%0A           &lt;meta-data android:name=%22android.preference%22 android:resource=%22@xml/about%22/&gt;%0A       &lt;/activity&gt;%0A   %3C/pre%3E%0A   Show the dialog in code: %3Cpre%3EAboutActivity.show(context);%3C/pre%3E%0A%0A * @author Oasis%0A */%0A@TargetApi(Build.VERSION_CODES.HONEYCOMB)       // TODO: Support 2.x%0Apublic class AboutActivity extends PreferenceActivity %7B%0A%0A    public static void show(final Context context) %7B%0A        context.startActivity(new Intent(context, AboutActivity.class));%0A    %7D%0A%0A    @Override protected void onCreate(final Bundle savedInstanceState) %7B%0A        final Intent intent = getIntent();%0A        intent.putExtra(EXTRA_SHOW_FRAGMENT, AboutFragment.class.getName()).putExtra(EXTRA_NO_HEADERS, true);%0A        setIntent(intent);      // We just prepare the intent, onCreate() of PreferenceActivity takes care of the rest.%0A        super.onCreate(savedInstanceState);%0A%0A    %7D%0A%0A    public static class AboutFragment extends PreferenceFragment %7B%0A%0A        @Override public void onCreate(final Bundle savedInstanceState) %7B%0A            super.onCreate(savedInstanceState);%0A            addPreferencesFromIntent(getActivity().getIntent());%0A        %7D%0A    %7D%0A%7D%0A

Add AboutActivity for simple building "About" dialog.