Query Data from Another Backendless App

二次信任 提交于 2019-12-12 03:37:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!