I am studying the Source Code of an Android App that gets the list of movies from an online server and displays in the APP screen, following is a snippet from it
package com.ggagroups.moviestore.data;
import com.ggagroups.moviestore.ui.UIApplication;
import com.ggagroups.moviestore.utils.Constants;
import com.ggagroups.moviestore.utils.DebugLog;
import com.ggagroups.moviestore.utils.Utils;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import org.apache.commons.lang3.StringUtils;
public class URLProvider {
private static final String TAG = "URLProvider";
public static String getCategoryHot(int pageindex, int pagesize) {
return "http://ift.tt/2vHmBFG" + pageindex + "&count=" + pagesize + "&" + getToken();
}
}
i can see that getCategoryHot() returns a URL but I am new to android and I don't know what that getToken() method does in the returned URL. If anyone knows please help me.
Aucun commentaire:
Enregistrer un commentaire