问题
Does backendless support querying data from another Backendless App Table? If yes how.
If I have Backendless App called Music with Table songs and I have another App called Movie. I want to query the song table from the Movie app.
回答1:
You gonna need to call Backendless.initApp(context, {another_app_id}, {another_app_secret_key}, v1)
before each call to a different application. This way you'll be able to talk to any number of apps.
回答2:
#Save
useres useres = new useres();
useres.setName("Amin");
useres.setId("DOREH");
useres.setScore("20");
useres.setData("2016.12.24");
Backendless.Persistence.save(useres, new AsyncCallback<com.example.amin.bback.useres>() {
@Override
public void handleResponse(useres response)
{
Log.d( "Register",response.toString());
}
@Override
public void handleFault(BackendlessFault fault)
{
Log.d( "Register faild ",fault.toString());
}
});
来源:https://stackoverflow.com/questions/39135434/query-data-from-another-backendless-app