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 7802195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:11:20+00:00 2026-06-02T01:11:20+00:00

I haven’t written any code for this yet, but I’ve been researching how to

  • 0

I haven’t written any code for this yet, but I’ve been researching how to implement bookmarks in my custom web browser. From what I’ve read, I believe the way to go is to show the user a dialog (I saw this article on how to return the value from the dialog) containing, I think, a ListView for the bookmarks… I’m honestly stuck at something pretty simple – how to present the bookmarks to the user and select one.

So, where my questions:

  1. what’s “best practice” for displaying a list to the user and having
    him select one?
  2. is doing this in a Dialog “best practice”?

Thanks.

  • 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-06-02T01:11:22+00:00Added an answer on June 2, 2026 at 1:11 am

    The classic way to do this (pre 3.0) is to use simple Dialogs, that you manage with your current Activity. The easiest way to go is to use the AlertDialogBuilder to build the dialog, see here, around the middle, the “Adding a list” section. This way you get a Dialog with a list, and the user can select exactly one entry from that list.

    Nowadays however, you should be using DialogFragments, with the (not so) new Fragment framework. You can use the official compatibility lib to make fragments work on older Android builds. In a DialogFragment, you can either show any UI layout you want if you override the onCreateView(…) callback, or you can define the looks and behavior by using the “onCreateDialog(…)” callback (you can use AlertDialogBuilder here, too). See the link for examples.

    The DialogFragment based solution is more self-contained and you can easily call/show it from any place in your Application.

    And yes, I do think that a single-select list-based dialog can be considered the “best practice” in this kind of situation. However, the other advantage of the DialogFragment based solution is, that you’re not forced to show it in Dialog-style, you can also embed it into an Activity’s layout as a standard fragment if that’s what you want.

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

Sidebar

Related Questions

I haven't been able to find any information on this, but would it be
I haven't been able to get this working and all of the sample code
I haven't found any documentation on this or seen this done before, but is
I haven't used the STL much before, but I started to on this huffman
I haven't actually built an app yet, but I'm confused by documentation on bind-attr.
Haven't been coding in a bit, but took on a project for a friend.
I haven't found a definite answer to this yet. Lots of apps let you
Haven't seen many Geneva related questions yet, I have posted this question in the
Haven't found a solution to this problem yet, have tried some things... I have
Haven't been able to find this one out. How are Bitmaps stored in memory

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.