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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:20:05+00:00 2026-06-15T22:20:05+00:00

I am using url to take the file for parsing. i want read the

  • 0

I am using url to take the file for parsing. i want read the url attributes and place them in textview. below is my url

https://graph.facebook.com/fql?q=SELECT+app_id,namespace,category+FROM+application+WHERE+namespace=%22graffitiwall%22

how to do this

  • 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-15T22:20:06+00:00Added an answer on June 15, 2026 at 10:20 pm

    parse your current json string as:

    public  class JSONTask extends 
                      AsyncTask<String, Void, String> {
        @Override
        protected String doInBackground(String... arg) {
            String linha = "";
            String retorno = "";
            // Cria o cliente de conexão
            HttpClient client = new DefaultHttpClient();
            HttpGet get = new HttpGet("https://graph.facebook.com
                       /fql?q=SELECT+app_id,namespace,category+
                     FROM+application+WHERE+namespace=graffitiwall%22");
    
            try {
                HttpResponse response = client.execute(get);
    
                StatusLine statusLine = response.getStatusLine();
                int statusCode = statusLine.getStatusCode();
    
                if (statusCode == 200) { // Ok
                  BufferedReader rd = new BufferedReader(new 
                  InputStreamReader(response.getEntity().getContent()));
    
                  while ((linha = rd.readLine()) != null) {
                        retorno += linha;
                  }
                }
            } catch (ClientProtocolException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
    
            return retorno; 
        }
    
        @Override
        protected void onPostExecute(String result) {
            // Create here your JSONObject...
    
        // getting JSON string from URL
        JSONObject json = new JSONObject(result);
    
         // Getting Array of data
        JSONArray userlist = json.getJSONArray("data");
    
        for(int i = 0; i < userlist.length(); i++){
             JSONObject c = userlist.getJSONObject(i);
    
             // Storing each json item in variable
              String str_app_id = c.getString("app_id");              
              String str_namespace = c.getString("namespace");
              String str_category = c.getString("category");
         }
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using url to take the file for parsing. Now i want read
I am using the Google Maps api. When I take the following URL and
I've started using a WebRequest to retrieve a file from a given URL. If
I am using File Helpers and I am unsure how to take my data
I'm using google maps with PHP/MSQL, i've read the documentation on google and take
I am using a .htaccess file to rewrite all URI addresses to take the
I am using the com.sun.jndi.fscontext.RefFSContextFactory file based JNDI context factory. It seems to take
I'm using URL rewriting through .htaccess on my site. Then I submit through PayPal's
I am using Url.Action() method to load view, Since heavy data is been accessed
I am trying open a new window using url.Action. And the new Window url

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.