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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:55:20+00:00 2026-06-05T11:55:20+00:00

I am generating a list of entities from my app’s datastore on Google app

  • 0

I am generating a list of entities from my app’s datastore on Google app engine and what I am trying to do is pass that list to an Android client.

I have this in my GAE servlet to generate the list:

<code>
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
Query query = new Query("ClimbingArea");
List<Entity> result = datastore.prepare(query).asList(FetchOptions.Builder.withDefaults());
</code>

How do I need to go about implementing something in my android app to retrieve this list?

  • 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-05T11:55:22+00:00Added an answer on June 5, 2026 at 11:55 am

    You need to serialize your entities and let your Android client deserialize them. You could use any format you want but JSON, XML and ProtBuff are the most popular. For JSON you would have something like this for a single entity. For a list, you would use a JSONArray and add your entities to the array:

    JSONObject jsonObj = new JSONObject();
    jsonObj.put("field1", climbingArea.getField1());
    jsonObj.put("field2", climbingArea.getField2());
    
    resp.setCharacterEncoding("UTF-8");
    resp.setContentType("application/x-javascript");
    
    PrintWriter out = resp.getWriter();
    out.write(jsonObj.toString());
    out.flush();
    out.close();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have many parabolas that are intersecting each other. I am generating a list
I'm generating List<int> x and List<int> y from List<Point> p using this code: List<int>
I'm generating a list from some string up to 4 NSUInteger total = MIN(4,
Friends i'm using string builder for generating Passenger List in which i have used
I have a markup for generating a list of clients and contacts info for
I currently have the :below: code for generating a list of all current 'rides'
I have a table that contains a list of EquipmentIDs and another table that
For one of my clients, I am generating a clients list from the Django
Lets say that I have a drop down list that I want to create
I am generating a list of flash SWFs, the information comes from an ajax

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.