‫Instructor: Hi,
‫within this lecture we are going to bring
‫in the Java code.
‫So in order to do that, I'm going to close this down
‫because I already have java codes opened in this tab.
‫So make sure you go to SecureTweet folder
‫and find this Java code.
‫So we're going to start with this, okay?
‫Which is our recycler view adapter.
‫So as you can see
‫I'm getting everything from the import tabs.
‫So make sure you get everything, not the package name
‫because yours will be different, obviously.
‫However, rest of the code
‫will be necessary to complete this.
‫So make sure you get everything exactly
‫in the way that I'm doing right now.
‫So I'm starting with the imports and I'm coming all the way
‫to the down and with all the curly braces.
‫Okay, I'm copying it.
‫I'm going to come over here to Tweet Recycler Review.
‫I'm going to delete everything
‫except from the package name itself, okay?
‫And I'm gonna paste it.
‫So once you do that, it will just adjust itself.
‫So maybe you can come up
‫with something like this where it doesn't recognize the IDs
‫even though we have defined them in the layout.
‫Then we are going to check it and see if it works, okay?
‫So for example, if I come
‫over here to user email, I can see user email text
‫and if I come over here it'll say,
‫yeah, cannot resolve it.
‫Even though it's there, it doesn't synchronize.
‫So in order to do this
‫I'm going to come over here and say, build clean
‫and then build rebuild, okay?
‫And it'll synchronize the project.
‫It'll rebuild the project
‫and we will see if that resolves the problem.
‫And if it doesn't, there are other take techniques
‫that we can use in order to make this kind of bug go away.
‫Since we are copying and pasting code,
‫sometimes these kind of problems may occur
‫and you have to know how to deal with them.
‫So let's wait until it's done and I believe it's done
‫and it doesn't still go away.
‫So it still gives us the error.
‫And this time I'm going to try this.
‫I'm gonna go over here to file menu
‫and say invalidate caches.
‫And this will invalidate all the caches in this
‫Android studio and it will restart our project.
‫So maybe it will be a little bit wiser if we did that
‫after we complete everything on the Java codes so that
‫if we get any errors, like similar errors in the activities
‫they will be resolved as as well.
‫But anyhow, we did it and let's see if that worked out
‫and if that solved that problem.
‫So as you can see, I think it is solved right now.
‫It looks promising
‫since we don't have any red errors showing up
‫in this activity or Java code.
‫So I'm going to wait
‫until it's finished anyhow and then see if it's done or not.
‫And yep, as you can see
‫it's already done and it seems to be working.
‫So it recognizes the user tweet text and user email, text.
‫So we are done with here.
‫So let's go to tweet activity
‫and let's find the related codes for tweet activity in here.
‫I'm going to copy everything
‫excluding the package name, okay?
‫And I'm going to take everything here as well
‫including these braces.
‫So let me copy this and come back here and delete everything
‫except the package name and then paste everything.
‫So I believe we don't have any errors like we had before.
‫So we can move on.
‫Let's go to sign up activity
‫and let's find the sign up activity as well.
‫Here we go.
‫And let's take everything
‫from here up until the end, like that.
‫Make sure you find everything.
‫Make sure you copy it, come back
‫and just delete everything over here and paste it.
‫That's good, right?
‫So now, it's time to go for the feed activity.
‫So let's go back
‫and find the feed activity and let's delete-
‫let's copy everything first like this, okay?
‫And then make sure you get curly braces and then copy it
‫and then come back and then just delete everything
‫and then paste it.
‫So it was boring enough.
‫Okay, I know it, but now we have our app.
‫Now it should run.
‫It should work.
‫When we run it, we are gonna test it.
‫We are going to see if that works or not.
‫And don't worry
‫I'm going to explain all these codes either.
‫So first we are going to test to see if that works
‫and then I'm going to explain all the codes to you.
‫Then we are going to do our penetration tests.
‫So see you in new lecture.