This post will Explain the way to deal if a server request is not completed because of data connection loss or server failure or proper redirect code to server not availble.
package com.example.sawan.onlineattendance;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Error extends AppCompatActivity {
Button btn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_error);
btn = (Button) findViewById(R.id.buttonerror);
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {}
});
}
}
No comments:
Post a Comment