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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:37:19+00:00 2026-06-03T07:37:19+00:00

I have data on a server which stores name and images. I want to

  • 0

I have data on a server which stores name and images.
I want to retrieve that from server and display in table layout on Android.

I wonder which is the best xmlparsing or json parsing for that purpose.
Is there any tutorial for that?

if($_REQUEST['mode']=="get")
{
 $result = mysql_query("SELECT state,imageurl FROM `pic_upload`");

        while($row = mysql_fetch_assoc($result))
        {
                $output=$row;

                print(json_encode($output));

        }
        mysql_close;
 }

using this i will get data from server but how to get data using xml parsing any one know

  • 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-03T07:37:20+00:00Added an answer on June 3, 2026 at 7:37 am

    It seems that json_encode($output) will produce a JSON output, so you should use Android’s JSON API (org.json).

    A quite recent tutorial is located at http://www.androidhive.info/2012/01/android-json-parsing-tutorial/ (also showing how to put retrieved elements on a list), but you will find many simply googling for Android and JSON.

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

Sidebar

Related Questions

I have a program that downloads PCM data from a Web Server, which it
I have a custom Android ContentProvider which stores and retrieves data from a SQLite
I have create the the jqgrid which loads the data from the server ,
I have a Microsoft SQL server DB that imports some data which needs a
I have a simple application which stores the data into the sql server database
I have data in an SQL Server 2005 database which I need to copy
We have client server based app which saves user related data into a zip
I have mail server configuration data (server - user name - password - port)
i have data structure i am passing this from server to client using data
I have an existing SQL Server database, where I store data from large specific

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.