Jul 10 | 7:25 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Jul 10 | 7:45 PM |
Aaron | has entered the room |
Mark M. |
hello, Aaron!
|
Mark M. |
how can I help you today?
|
Jul 10 | 7:50 PM |
Aaron |
Hi Mark. I'm studying the Busy Coder's Guide and following the tutorials. For context I have only an introductory level knowledge of Java and I'm not a professional developer. I'm on tutorial 12 and the learning curve is getting steeper. Few questions
|
Jul 10 | 7:55 PM |
Aaron |
View paste
|
Aaron |
Thanks :)
|
Aaron |
To clarify #1:
|
Mark M. |
1. SimpleContentActivity handles the help and about pages, and it is there in part to help illustrate starting other activities and passing data to them via extras. With respect to the Google-recommended single-activity architecture, that is a relatively new bit of advice.
|
Aaron |
My question is, why do we separate out that code and place it in SimpleContentActivity, rather than including it in EmPubLiteActivity in order to have only 1 activity. I understand the code inside it, I just don't understand why it's in a separate activity
|
Mark M. |
it is to teach you how to work with other activities, via startActivity() and extras
|
Aaron |
Ok, got it
|
Aaron |
That makes sense.
|
Jul 10 | 8:00 PM |
Mark M. |
2. You will also find it called a "headless fragment". It is the technique used by Google for their ViewModel library, covered in "Android's Architecture Components".
|
Mark M. |
3. EmPubLite does not adhere to any GUI architecture. GUI architectures are covered somewhat in "Android's Architecture Components". However, my books are on how to use Android APIs, not on the many possible ways of plugging those things together, such as various GUI architecture patterns.
|
Aaron |
OK great. That is very helpful. I am sure I'll be back in the future but that gives me enough to go on for now
|
Mark M. |
OK, sounds good
|
Aaron |
One other thing to mention, I noticed that the landing page for the Busy Coder's Guide says the book has 16 tutorials, but the latest version has 17
|
Aaron |
FYI
|
Aaron |
Thanks a lot!
|
Jul 10 | 8:05 PM |
Mark M. |
thanks for pointing that out!
|
Aaron |
No problem. Thanks again, good night
|
Jul 10 | 8:20 PM |
Aaron | has left the room |
Jul 10 | 8:30 PM |
Mark M. | turned off guest access |