public static synchronized List<Status> retrieveSpecificUsersTweets(Twitter twitter, int page) throws TwitterException { List<Status> statuses = new ArrayList<Status>(); Paging p = new Paging(page); statuses = (ArrayList<Status>) twitter.getFriendsTimeline(p); return statuses; }
public static Status getLatestStatus(Twitter twitter) { Status result = null; try { Paging p = new Paging(1); result = (Status) (twitter.getFriendsTimeline(p).get(0)); } catch (TwitterException e) { Log.e("Twitter", e.getMessage()); } return result; }