Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5935171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:12:59+00:00 2026-05-22T15:12:59+00:00

In my PreferenceActivity I’ve added a button About, when pressed the following function is

  • 0

In my PreferenceActivity I’ve added a button “About”, when pressed the following function is called:

public void InstructionsDialog(){
  AlertDialog.Builder ad = new AlertDialog.Builder(this);
  ad.setIcon(R.drawable.icon);
  ad.setTitle("About");
  ad.setView(LayoutInflater.from(this).inflate(R.layout.about_dialog,null));

  ad.setPositiveButton("OK", 
    new android.content.DialogInterface.OnClickListener() {
     public void onClick(DialogInterface dialog, int arg1) {
      // OK, go back to Main menu
     }
    }
   );

   ad.setOnCancelListener(new DialogInterface.OnCancelListener(){
     public void onCancel(DialogInterface dialog) {
      // OK, go back to Main menu   
     }
    }
   );

  ad.show();
 }

The layout look like this:

<LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:scrollbars="vertical" 
    android:scrollbarAlwaysDrawVerticalTrack="true"
    android:id="@+id/instructions_view" >

<TextView   android:id="@+id/TextView01" 
                android:layout_width="wrap_content" 
                android:layout_height="wrap_content" 
                android:paddingLeft="5px">
                </TextView>
<TextView   android:id="@+id/TextView02" 
                android:layout_width="wrap_content" 
                android:layout_height="wrap_content" 
                android:paddingLeft="5px"
                android:paddingTop="20px"
                android:text=
                "Thank you for downloading this application. Bug reports and request for additional features or languages are welcome.">
                </TextView>                
<TextView   android:id="@+id/TextView03" 
                android:layout_width="wrap_content" 
                android:layout_height="wrap_content" 
                android:paddingLeft="5px"
                android:paddingTop="20px"
                android:text=
                "This project makes use of the 'Android Wheel' created by Yuri Kankan and is licensed under the Apache License (http://www.apache.org/licenses/LICENSE-2.0.html)">
                </TextView>
<TextView   android:id="@+id/TextView04" 
                android:layout_width="wrap_content" 
                android:layout_height="wrap_content" 
                android:paddingLeft="5px"
                android:paddingTop="20px"
                android:layout_gravity="center"
                android:text="Copyright © 2011, Tricky-Design" 
                ></TextView>

</LinearLayout>
</ScrollView>!

About screen

Which is good, but I would like that the links in this dialog are hyper links. I’ve read about using linkify but this results in FC.

I hope somebody can help me.

Thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:13:00+00:00Added an answer on May 22, 2026 at 3:13 pm

    What I’ve done to make this possible is the following:

    I’ve made a custom dialog using the following example: http://www.androidpeople.com/android-custom-dialog-example

    In my preferenceActivity I created:

    public void aboutScreen() {
        about about = new about(this);
        about.show();
    }
    

    Inside this custom dialog I can do whatever i want, including using linkify to make my links click able.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am following this tutorial: link text Preferences.java: public class Preferences extends PreferenceActivity{ @Override
I'm new to using the PreferenceActivity. Task: Allow user to choose the program layout
Based on the following code, can you tell me how to refresh the PreferenceActivity
I'd like to provide a Button in the PreferenceActivity. The user should be able
I read http://developer.android.com/reference/android/app/Activity.html but I have a question about PreferenceActivity lifecycle: Does a PreferenceActivity
I'm using PreferenceActivity to set some preferences about another BroadcastReciever that i have. While
When calling my PreferenceActivity from a screen, and after pressing the Back button, the
I had the following (minor but nagging!) problem: I've got a PreferenceActivity with a
I am working on a PreferenceActivity for Android . I am following some of
I have a class extending PreferenceActivity: public class PreferenceActivity extends android.preference.PreferenceActivity { @Override protected

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.