如何修改此代码以在自定义Parse服务器上运行?
GroupAD
答案 0 :(得分:0)
public void onCreate() {
super.onCreate();
Parse.enableLocalDatastore(this);
// set applicationId, and server server based on the values in the server
// clientKey is not needed unless explicitly configured
// any network interceptors must be added with the Configuration Builder given this syntax
Parse.initialize(new Parse.Configuration.Builder(this)
.applicationId("yourapplicationid")
.clientKey("yourkey")
.server("http://example.com:1337/parse/").build()
);
}
这将解决您的问题