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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:19:30+00:00 2026-06-13T03:19:30+00:00

I have an application with main activity extending ListActivity and displaying bunch of items.

  • 0

I have an application with main activity extending ListActivity and displaying bunch of items. And I’d like to show a custom DialogFragment after clicking on list’s item (for edit item info). But according to Google’s android tutorial http://developer.android.com/guide/topics/ui/dialogs.html I can show DialogFragment only from activity that extends FragmentActivity because there is need to call getSupportFragmentManager() method.

So question is: how do I show custom dialog from ListActivity?

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-13T03:19:31+00:00Added an answer on June 13, 2026 at 3:19 am

    I would probably just extend FragmentActivity to replicate the stuff in ListActivity. You can default the content view to a list view (with an empty view if needed), and recreate the methods getListView, getListAdapter, and onListItemClick. Then you get all the fragment stuff and it acts like a regular list activity.

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

Sidebar

Related Questions

Hi I have an application which after login, loads a main activity which contains
I have some main activity and clicking on a button it launches a custom
I have a main application, and a bunch of sub-applications (they are separate apps,
I have an Android application with a main activity that is the tabhost. I'm
In a game application I have the following scenario: From the main game Activity
I have three activities in my android app. First activity is main application screen
Actually in my application i have set an activity as main activity in which
I have an android application which in its main activity, data are adapted from
I have an application that contains a main Activity, which has a very simple
I have an application about debts to user and user's debts. Main activity is

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.