पर डेटा लोड मैं एक चरखा संवाद दिखाना चाहते हैं, जबकि जबकि मेरी एप्लिकेशन कुछ डेटा लोड:दिखाएँ चरखा संवाद एंड्रॉयड
चरखा संवाद एक बटन पर क्लिक दिखाना चाहिए। मैं नीचे दिए गए कोड का उपयोग कर रहा हूं लेकिन अब यह कताई चक्र दिखाता है। क्या समस्या हो सकती है?
public void CheckAccount(String username, String password) {
try {
final ProgressDialog progDailog = ProgressDialog.show(this,
"Progress_bar or give anything you want",
"Give message like ....please wait....", true);
new Thread() {
public void run() {
try {
// sleep the thread, whatever time you want.
sleep(1000);
} catch (Exception e) {
}
progDailog.dismiss();
}
}.start();
//getting data code here
//getting data code here
//getting data code here
//getting data code here
//getting data code here
} catch (Exception e) {
Log.e(LOG_TAG, e.getMessage());
PopIt("CheckAccountError", e.getMessage(), "Denied");
}
}
बिल्कुल सही संदर्भ, बहुत धन्यवाद @ निकोलस! :) – Kris
संदर्भ के उपयोग से प्यार है, +1 :) – xorinzor