Code example for TimeUnit

Methods: toMillis

0
 
    @Override 
    public void onItemClick(final AdapterView<?> adapterView, final View view, final int position, final long id) {
        final String stringSelected = (String) adapterView.getItemAtPosition(position);
        progressDialog = ProgressDialog.show(this, stringSelected, stringSelected);
        dialogHandler.sendEmptyMessageDelayed(0, TimeUnit.SECONDS.toMillis(DIALOG_SHOW_SECONDS));
    } 
} 
Experience pair programming with AI  Get Codota for Java