Question: Mobile application by Android studio app: when I click on greet friend at evening time it will display good evening friend and when I click
Mobile application by Android studio app:
when I click on greet friend at evening time it will display good evening friend and when I click at morning it will display good morning my friend
please take a screenshot of the result in all time

Q G APP Edit View Navigate Code Analyze Retactor Build Run Tools VCS Window Help idFemale : appsc main java D.com Dicces bil mapp bi greetfriend MainActivity app L, My Device Android activity main.xml a strings.xml MainActivity.java Android Emulator - my_device:5554 17 get a reference to the greetButton on the UI v manifests 6:28 greetButton = (Butcom) EindViewById(R.id.greerButton) Android Manifest.xml helloutton = (Button) findViewById(R.id.belloputton) java // Set the onclickiszonez for the greatButton to be the GreetFriend vi com.cces.mapp.greetfriend W this requires that the class implement the view onclic MainActivity 34 // the buclack() method NewActivity greet.button.setOnClickListener(this); Good Day helloButton. SelonClickListener(this); com.cces.mapp.greetfriend andre IA } com.coes.mapp greetfriend tot 30 1 java (generated Soverride public void onClick(View v) drawable get a reference to the TextView on the UI GREET FRIEND Dalayout TextView text Message = (XLVASMI findViewById(R.id. * W get a reference to the Editro that we can read in de activity_main.xml // Ey the UE activity_new.xml EditText editFriendname = ( ) findVieweyia (R.id.ca String FriendIName - edit PriendName.getText().toString(); y values SAY HELLO switch (v.getId() values colors.xml case R.id.greet button strings.xml text.Message.setText (getString(Ritring aretacem styles.xml Break Bares (generated CASE R.10.1lButto: A Gradle Scripts 45 text message. settext (120 MEME. FriendName break of res Dimipmap Device File Explorer Apply Changes successfully finished in 1s 8 ms. MainActivity anclick
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
