Search the Blog

Thursday, August 15, 2019

Android java code for error in MVC project

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.


Android java code for error in MVC project



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) {}

  });

 }

}
Android server error


See  Also- Android Code for opening Multiple Screen from a single Activity

See Also Humanoid ROBOT Complete Programming and demo video with parts and equipment used details.



No comments:

Post a Comment

Translate