Hi i want to show a loading or progress dialog first for 1 second before button do anything else.... please help
button1 = (Button) findViewById(R.id.button1);
button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
<!-- want to a Show a Loading or Progress Dailog for 1 Second -->
if (isInternetPresent) {
// Internet Connection is Present
} else {
// Internet connection is not present
InternetNotContectedAlert();
}