Back to project page Test-SimpleTwitterClient.
The source code is released under:
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...
If you think the Android project Test-SimpleTwitterClient listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.Twitter_Android.Loaders; /*from w w w. j a v a 2 s. com*/ import android.content.Context; import com.example.Twitter_Android.Logic.DataCache; import com.example.Twitter_Android.Logic.Person; import com.example.Twitter_Android.Net.Connector; import org.json.simple.parser.ParseException; import java.util.ArrayList; import java.util.List; public class FollowingsLoader extends TweetLoader<Person> { private final long cursor; private final Connector connector; //------------------------------------------------------------------------------------------------------------------ public FollowingsLoader(Context context, Connector c, long cursor) { super(context); connector = c; this.cursor = cursor; } //------------------------------------------------------------------------------------------------------------------ @Override public List<Person> loadInBackground() { List<Person> followings = new ArrayList<>(); try { followings = connector.getFriends(DataCache.getInstance().getConnectedUserID(), cursor); } catch (ParseException e) { e.printStackTrace(); } return followings; } }