2016-07-14 7 views
0
import android.app.ProgressDialog; 
import android.content.Context; 

/** 
* Created by Software Engineer on 7/14/2016. 
*/ 
public class ServerRequests { 
    ProgressDialog progressDialog; 
    public static final int CONNECTION_TIMEOUT = 1000 * 15; 
    public static final String SERVER_ADDRESS = "http://manibala.comlu.com/"; 

    public ServerRequests(Context context) { 
     // Instantiate Progress Dialogue 
     progressDialog = new ProgressDialog(context); 
     // Set the attribute of Progress Dialogue 
     progressDialog.setCancelable(false); 
     progressDialog.setTitle("Processing"); 
     progressDialog.setMessage("Please wait..."); 
    } 

    public void storeUserDataInBackground(User user, GetUserCallBack callBack) { 
     progressDialog.show(); 
    } 
} 
+1

なぜ「k」タグが付けられていますか? –

答えて

0

Javaパッケージでインターフェイスを作成します。例:GetUserCallback.javaというファイルを作成します。

interface GetUserCallback { 
    public abstract void done(User returnedUser); 
} 

これで完了です!

関連する問題