android - statusesService.homeTimeline allways retrieve the same number of tweets -


statusesservice.hometimeline first parameters supposed number of tweets retrieved ,but whatever number pass method default number of tweets,20.

public class followingactivity extends appcompatactivity {      listview homelist;      @override     protected void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         setcontentview(r.layout.activity_following);          homelist =(listview)findviewbyid(r.id.homelist);          twitterapiclient twitterapiclient = twittercore.getinstance().getapiclient();         statusesservice statusesservice = twitterapiclient.getstatusesservice();          statusesservice.hometimeline(200, null, null, null, null, null, null,//always same number of tweets                 new callback<list<tweet>>() {                     @override                     public void success(result<list<tweet>> result) {                          final fixedtweettimeline timeline = new fixedtweettimeline.builder()                                 .settweets(result.data)                                 .build();                         final tweettimelinelistadapter adapter = new tweettimelinelistadapter.builder(followingactivity.this)                                 .settimeline(timeline)                                 .build();                          homelist.setadapter(adapter);                      }                      public void failure(twitterexception exception) {                     }                 }         );       } } 


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -