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

  • Home
  • SEARCH
  • 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 8090147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:37:30+00:00 2026-06-05T19:37:30+00:00

so here is the problem. I am currently creating an Android app that is

  • 0

so here is the problem. I am currently creating an Android app that is going to require me to parse some html so i can display it on the app screen.

I don’t know how to do that properly and was wondering if you guys could point me in the right direction or show me a good guide.

What I want to do is go through the html code and take out certain items (specifically the food items, you will see in a minute). I don’t want to just link the person to the website or use webview to display the webpage in the app cause I personally feel like that doesn’t look good. What i want to do is pull the food items from the html and then just put that part on my app in the form of a string or something.

—–Here is a bit of the html from the site I am using for reference——

enter code here

<a href="http://www.campusdish.com/en-US/CSMA/OldDominion/Locations/rda.aspx?RCN=m784&amp;MI=122&amp;RN=CEREAL  HOT  GRITS" OnClick="javascript: NewWindow('http://www.campusdish.com/en-US/CSMA/OldDominion/Locations/rda.aspx?RCN=m784&amp;MI=122&amp;RN=CEREAL  HOT  GRITS', 'RDA_window',  'width=450, height=600, scrollbars=no, toolbar=no,  directories=no, status=no, menubar=no, copyhistory=no');return false" Class="recipeLink">CEREAL  HOT  GRITS</a>

                <br>

              </td>

            </tr>

          </table>

        </div>

      </td>

    </tr>

    <tr>

      <td>

        <div class="menuTxt">

          <table cellpadding="0" cellspacing="0" border="0" bordercolor="green">

            <tr valign="top">

              <td colspan="3">

                <a href="http://www.campusdish.com/en-US/CSMA/OldDominion/Locations/rda.aspx?RCN=m860&amp;MI=122&amp;RN=PANCAKES  BUTTERMILK" OnClick="javascript: NewWindow('http://www.campusdish.com/en-US/CSMA/OldDominion/Locations/rda.aspx?RCN=m860&amp;MI=122&amp;RN=PANCAKES  BUTTERMILK', 'RDA_window',  'width=450, height=600, scrollbars=no, toolbar=no,  directories=no, status=no, menubar=no, copyhistory=no');return false" Class="recipeLink">PANCAKES  BUTTERMILK  </a>

——end html——-

So I want to just extract the words “CEREAL HOT GRITS” and “PANCAKES BUTTERMILK” for example.

Please and thank you for your help!

  • 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-05T19:37:33+00:00Added an answer on June 5, 2026 at 7:37 pm

    It might not be the most efficient way, but if you take the HTML source code and put it in a string, and then parse through it that way line by line. Whenever you hit a line with <a href at the beginning, then you can check it, and see if it is a food item (don’t know how you’d do that without know the rest of the links, but there is probably a different structure or something, or food items might start after link 7 or something. Websites usually have a recognizable pattern). If it is a food item, then grab the link (for the image) and the name, or whatever you need.

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

Sidebar

Related Questions

need some help here My problem is, my app starts with a single view,
I am currently creating a website and have some javascript that works in all
I am currently creating a site with some dynamic content, so that whenever a
Allright here is my problem I am currently devlopping a JApplet and a Application.
Here's my problem. I'm currently trying to develop a .Net Compact Framework 2.0 application
date here my problem: String datetime = 2012-03-24 23:20:51; I know that that string
I am creating a widget that you can assign a contact to onClick. I
We're currently creating an online music store that allows, only for administrators, to upload
I am currently creating dynamic SSIS packages that import/export and access data between a
I'm creating a spotlight that moves over content in my app, like so: In

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.