‫Hello my friends.
‫We will continue with the journal creation.
‫I will create a new object of type journal.
‫I will name it as journal and.
‫Here equal to New Journal and we'll open the constructor.
‫I will pass that title.
‫I will pass the thoughts.
‫The third parameter is the image.
‫Uri and I need to change the image Uri from string from int to string.
‫Here I will pass a new timestamp.
‫Time.
‫Stamp or time added.
‫I will create it here.
‫Var.
‫Time.
‫Stamp.
‫It's of type timestamp equal to timestamp and I will pass the new date.
‫Alt+ enter to.
‫Add java.util.
‫Okay.
‫I will pass time stamp.
‫You can see that we need to use the user ID at first before timestamp.
‫So user id.
‫The current user ID, and the last parameter is the user name.
‫So current user name.
‫Here.
‫This is the timestamp for times.
‫It's damp.
‫Time stamp.
‫And please, guys, see this error.
‫I have imported the Java dot SQL timestamp and I'm creating an object of timestamp.
‫I need to import the same package and I need to import the package of Google dot Firebase.
‫So you can see guys that many people and many developers, including me, can make errors that are very
‫silly, but they they waste time on it.
‫Now let's invoke the collection reference.
‫So collection reference dot add journal.
‫I am including here this journal and uploading the journal or posting the journal.
‫Adding the new dawn.
‫Dot add on success listener And here I will put the progress bar.
‫Here binding dot post progress bar.
‫Dot visibility equal to view dot invisible and I will start activity.
‫Here I will create a new instant.
‫Var I equal.
‫It's of type intent equal to new intent.
‫And I will pass the.
‫I will import the intent and I will pass from this activity to.
‫Journal list.
‫Activity.
‫List.
‫Journal list activity.
‫class.gov.
‫Okay.
‫I will start the activity I and call the method finish.
‫Okay.
‫It's very.