Commit c886385b authored by Buwaneka 's avatar Buwaneka

add StudentID.java

parent 822fe269
package com.example.count;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class StudentID extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.student_layout);
final EditText studentId=findViewById(R.id.studentid);
GlobleVariable.resultList.clear();
Button btn = findViewById(R.id.takego);
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
GlobleVariable.StudentID=studentId.getText().toString();
if(GlobleVariable.StudentID.isEmpty()){
Toast.makeText(getApplicationContext(),"ADD STUDENT ID",Toast.LENGTH_SHORT).show();
}
else{
startActivity(new Intent(StudentID.this, TakeImage.class));
}
}
});
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment