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.osBundle;
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 onCreateBundle savedInstanceState
super.onCreatesavedInstanceState;
EdgeToEdge.enablethis;
setContentViewRlayout.activityrejectedregistrationrequestoverview;
ViewCompat.setOnApplyWindowInsetsListenerfindViewByIdRidmainv insets
Insets systemBars insets.getInsetsWindowInsetsCompatType.systemBars;
vsetPaddingsystemBarsleft, systemBars.top, systemBars.right, systemBars.bottom;
return insets;
;
rejectedRegistrationRequestsList findViewByIdRidrejectedRegistrationRequestsList;
returnToWelcomePageButton findViewByIdRidreturnToWelcomePageButton;
String userTypeStringgetIntentgetStringExtraUserType;
Set a loading message while requests are being loaded
rejectedRegistrationRequestsList.setTextLoading rejected registration requests...";
returnToWelcomePageButton.setOnClickListenerview
Intent intent new IntentRejectedRegistrationRequestOverviewthis, WelcomePage.class;
intent.putExtraUserType userTypeString;
startActivityintent;
;
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
