2015-02-01 1 views
0

의견이 많은 parse.com 게시물의 예가 있습니까? 또는 어떤 방법을 사용해야합니까? 많은 관계로 많은 많은 관계로 하나를 같은, 내가 코멘트, 감사 카이저을 내 구문 분석 데이터의견이있는 게시물을 분석하십시오.

+0

https://www.parse.com/docs/android_guide#objects-pointers? –

답변

0
// Create the comment 
     ParseObject myComment = new ParseObject("Comment"); 
     myComment.put("content", txtComment.getText().toString()); 

// Add a relation between the Post with objectId ("1zEcyElZ80" for example) and //the comment 
     myComment.put("parent", ParseObject.createWithoutData("Post", PostId)); 

// This will save both myPost and myComment 
     myComment.saveInBackground(); 
    } 

나는 그것을 누르면 게시물 ID를 얻어서 관계를 해결에서 포스트와 코멘트의 수업을, 모든 것이 여기에 설명되어 있습니다.

관련 문제