2016-09-05 6 views
0

이 코드를 사용자 지정 구문 분석 서버에서 실행하도록 수정하려면 어떻게해야합니까?클라이언트 구문 분석 서버 문제

public class ParseTutorialApplication extends Application { 

    @Override 
    public void onCreate() { 
     super.onCreate(); 
     Parse.initialize(this, "your key", "your key"); 
     ParseInstallation.getCurrentInstallation().saveInBackground(); 
    } 
    } 

답변

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() 
     ); 

    } 

이 방법으로 문제가 해결 될 것입니다