Przeglądaj źródła

added the wekend progress

Simon Hammer 3 lat temu
rodzic
commit
34cbcb8d38
2 zmienionych plików z 45 dodań i 0 usunięć
  1. 24 0
      diary/2021/2021_08.tex
  2. 21 0
      diary/dictionary.tex

+ 24 - 0
diary/2021/2021_08.tex

@@ -35,3 +35,27 @@ The last days I added an Message Class wich has the variables for one Message an
 to change the Input of the Customadapter dependent on the Directory the user is in.
 
 I did that with the functions setDraft, setGallery, setSent and the class Message
+
+
+\def\day{\textit{August 25st, 2021 Simon}}
+\def\weekday{\textit{Wednesday}}
+\subsection*{\weekday, \day}
+
+I am making a database example app with 
+https://developer.android.com/codelabs/android-room-with-a-view#11
+
+and had a error where the dp were left in a dimen but nothing told me that.
+
+Also they use a different button there to add things. We might want to use that one
+
+\def\day{\textit{August 30st, 2021 Simon}}
+\def\weekday{\textit{Monday}}
+\subsection*{\weekday, \day}
+
+The last days I worked on the example app and could add 
+the Database there for Messages and it was possible to write a 
+message and safe it in the Draft
+Now I'm adding these to our Programm and I had to delete the Customadapter
+because it was not necessary 
+
+

+ 21 - 0
diary/dictionary.tex

@@ -113,6 +113,16 @@ A static method can be accessed without creating an object of the class first
 this
 The this keyword refers to the current object in a method or constructor
 
+synchronized
+Java provides a way of creating threads and synchronizing their task by using synchronized blocks. Synchronized blocks in Java are marked with the synchronized keyword. 
+A synchronized block in Java is synchronized on some object. 
+All synchronized blocks synchronized on the same object can only have one thread executing inside them at a time.
+All other threads attempting to enter the synchronized block are blocked until the thread inside the synchronized block exits the block.
+
+volatile
+Volatile keyword is used to modify the value of a variable by different threads. It is also used to make classes thread safe. 
+It means that multiple threads can use a method and instance of the classes at the same time without any problem.
+
 instanceof
 checks if a variable is type of the following, it returns boolean
 
@@ -121,11 +131,22 @@ The java.lang.System.gc() method runs the garbage collector.
 Calling this suggests that the Java Virtual Machine expend effort 
 toward recycling unused objects in order to make the memory they currently occupy available for quick reuse.
 
+threads
+Threads allows a program to operate more efficiently by doing multiple things at the same time.
 
+one-to-one 
+A one-to-one relationship between two entities is a relationship where each instance of the parent entity corresponds to exactly one instance of the child entity, and vice-versa.
+Relation between Message and Attachment
 
 
+one-to-many
+A one-to-many relationship between two entities is a relationship where each instance of the parent entity corresponds to zero or more instances of the child entity, 
+but each instance of the child entity can only correspond to exactly one instance of the parent entity.
+Maybe needed for Inbox. 
 
 
+many-to-many
+A many-to-many relationship between two entities is a relationship where each instance of the parent entity corresponds to zero or more instances of the child entity, and vice-versa.