How to implement a login in Android using Volley? -
i have loginactitvity 2 textfields username , password , login-button. when user presses button, app starts async task. async task implements volleyhandler. checks if login parameters correct , fetches user data (using volley , json). while doing this, progressdialog appears. when async task finished, starts intent mainactivity in onpostexecute method. now question: idea make volley-requests in async task, or have better solution? thanks. you cannot use asynctask. volley care it. can use callback work data , ui. looks this: public class loginactivity extends singlepaneactivity implements downloadcallback { //... public void sendrequest(){ downloader download = new download(this); downloader.download(username, password); progresbar.show(); } public void requestfinish(){ progersbar.dismis(); //... continue } } callback: public interface downloadcallback { void requestfinish(); } in class downloader private requestqueue requestqueue; download...