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

The Archive Base Latest Questions

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

This is an easy question but I am not sure the correct jargon to

  • 0

This is an easy question but I am not sure the correct jargon to use, so google isn’t giving me the result that I want.

I am new to android and have written a few basic application and wanted to make another basic app that has displays information. So it would several main topics and then you can click on one and it will display another list of topics related to the main category and then finally the information.

I am having trouble because I’m unsure whether to just make a bunch of different xml layouts for each category or if I can use an SQL database to store all my data and have the menus point to it. From what I’ve read SQL seems to be used more when you want to store data vs access it but again i’m new to this. So what would be the best way to approach this.

I just want the layout to be scroll view with a table of 1 column and as many rows I need for the particular topic.

Sorry again I know there is probably a million examples via google but I don’t know how to word my question.

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-05-22T15:45:39+00:00Added an answer on May 22, 2026 at 3:45 pm

    If I am reading it correctly, you are looking to create dynamic content from a DB table to fill a view with a list. And the onClick for each list item will open up another list of topics (sub topics / articles in that topic). A click on that sub-topic list item will open up some content.

    What you are looking for is the ListView ( http://developer.android.com/resources/tutorials/views/hello-listview.html ). This takes an array of data and a layout that will be rendered with it. It’s pretty straightforward.

    However, if you are pulling from a DB then a better adapter would be the SimpleCursorAdapter which is designed to show DB rows in a list view (http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html ). I dont think it could be better explained than here Getting stored data from database into ListView..

    You can reuse the class that displays the adapter by having the item onClick open the same activity but passing in filter params through the bundle that will use to filter the DB results, depending on what you want.

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

Sidebar

Related Questions

I am sure this is an easy question, but one that has escaped me
This may seem an easy question, but not to me, also a search has
I'm sure this is an easy question, but I don't have an answer for.
I am sure this is an easy question however I am not finding the
(This question could be better off on math, but im not sure) https://i.stack.imgur.com/ujPJG.png This
easy question to ask, but not really sure what to search for to find
This has got to be an easy question but I'm not finding anything out
Not all that sure how I would describe this question, so I'll jump right
I know this is an easy question but I can't figure it out or
This should be an easy question - but I'm having a hard time figuring

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.