Question: import android.content.Intent; import android.os . Bundle; import android.widget.Button; import android.widget.TextView; import androidx.activity.EdgeToEdge; import androidx.appcompat.app.AppCompatActivity; import androidx.core.graphics.Insets; import androidx.core.view.ViewCompat; import androidx.core.view.WindowInsetsCompat; import java.util.List; public class RejectedRegistrationRequestOverview

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import java.util.List;
public class RejectedRegistrationRequestOverview extends AppCompatActivity {
private TextView rejectedRegistrationRequestsList;
private Button returnToWelcomePageButton;
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_rejected_registration_request_overview);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main),(v, insets)->{
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
rejectedRegistrationRequestsList = findViewById(R.id.rejectedRegistrationRequestsList);
returnToWelcomePageButton = findViewById(R.id.returnToWelcomePageButton);
String userTypeString=getIntent().getStringExtra("UserType");
// Set a loading message while requests are being loaded
rejectedRegistrationRequestsList.setText("Loading rejected registration requests...");
returnToWelcomePageButton.setOnClickListener(view ->{
Intent intent = new Intent(RejectedRegistrationRequestOverview.this, WelcomePage.class);
intent.putExtra("UserType", userTypeString);
startActivity(intent);
});
}
} I want to add the possibility to add the rejected requests to the rejectedrequestsList and the administrator can go back to them and approve one or more or all of them and once they are approved we can't make another decision

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!