Code example for ProgressDialog

Methods: dismissisShowing

0
    private BasedroidHttpClient client;
 
    private final Handler dialogHandler = new Handler() {
        @Override 
        public void handleMessage(final Message msg) { 
            if (progressDialog.isShowing()) { 
                progressDialog.dismiss(); 
            } 
        } 
    }; 
 
    @Override 
    protected void onCreate(final Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.list_activity_example); 
        getSupportActionBar().setTitle("List Activity"); 
        getListView().setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, EXAMPLE_STRINGS));
        getListView().setOnItemClickListener(this);
    } 
 
    @Override