Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Reading Data Items

Reading Data Items

The Backend Services Android SDK allows you to read single or multiple data items in a single method call.

Below you can find samples for reading data from Backend Services. Advanced querying options are available in the Querying section.

Single Item

RequestResult result;
result = app.workWith().data(Book.class).getById(bookId).executeSync();
Log.i("App_name", "retrieved book: " + ((Book)result.getValue()).getTitle());

Multiple Items

RequestResult<ArrayList<Book>> requestResult;
requestResult = app.workWith().data(Book.class).getAll().executeSync();
for (Book book : requestResult.getValue()) {
   Log.i("App_name", "retrieved book: " + book.getTitle());
Contact us: +1-888-365-2779
Copyright © 2016-2018, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.