how to create a feed from data objects

Hi dear Backendlesses,

I’m trying to create a feed from data objects in Backendless.

I’ve created all of the advanced stuff I need - an adapter for listview etc, I just need to learn get all of the data objects from Backendless into string that fill the adapter.

when I’ve built it I’ve put a simple string like:
String[] contactname = new String[]{
“john”, “batman”, “bruce”
};
String[] job = new String[]{
“leader of mankind”, “a dark knight”, “not batman”
};but now I need to get the real information from the server and populate the lists with some “for” loop.totally don’t know how to do that.
thanks a lot!

Hi Gil,

Use the “find” documented here: https://backendless.com/documentation/data/android/data_basic_search.htm

A more complete example is available at: https://backendless.com/feature-16-data-retrieval-api-how-to-load-objects-from-an-mbaas-storage/

Regards,
Mark

thanks Mark, will read and implement.

in this line: System.out.println( "Restaurant name = " + restaurant.getName() );
I get an error that a non-static method cannot be refrenced from a static context.

Stackoverflow.com is your best friend right now… )))