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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:04:14+00:00 2026-05-27T08:04:14+00:00

this is a very basic question, as I am just beginning with Android. When

  • 0

this is a very basic question, as I am just beginning with Android.

When I click a button I want to show a list of articles saved on my device and the user can choose one of them. BUT if there aren’t any, I want to show a “Download” button to allow user to download the articles.
I don’t know how to do the layouts – should I call a new activityForResult with a ListActivity intent ? but then, in case there are no articles, how will I show the button?

Thank you

  • 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-27T08:04:14+00:00Added an answer on May 27, 2026 at 8:04 am

    I can give you brief idea.Then you will have to try to implement it using references on internet.If you will come to a problem,we all are happy to help you,but at least you should put some efforts in coding.

    So you will have to have a button,a listview and another button in xml layout.

    A button (say btn_ShowArticles) is for its click to populate the listview.

    A listview (say articleList) is for showing list of articles.

    another button (say btn_download) is to let user download articles if there aren’t found any.

    Now you will have to catch button click of btn_ShowArticles and there,you will have to fill the listview using an adapter.

    you can check if the adapter is null or not.If it is null then you can show btn_Download and set listview invisible.

    Else you can set btn_Download invisible and populate listview.

    You can code to download the article in on click of btn_Download.

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

Sidebar

Related Questions

I know this is a very basic question, thats why I just want a
This is a very basic question. I'm just on my mission to learn ASP.NET
This is very basic magento question i guess. I want to first get all
I am just beginning to learn Matlab , so this question might be very
This is a very basic question. I am just trying to understand how SQLite
This is a very basic question, I'm just not that good with Java. I
This is a very basic question. I'm so confused as to why my button
This could be a very basic question but i want to confirm here. Im
Apologies for the very basic question! I just want to read in a latex
This is very basic question from programming point of view but as I am

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.