CiderCS3398 / CS3398-Cider-S2017

CS3398 Team Github
0 stars 2 forks source link

Familiarize Ourselves with Existing Code - Forrest #9

Closed forrest87 closed 7 years ago

forrest87 commented 7 years ago

Spend an hour or so getting to understand how the existing program works based on its source code.

forrest87 commented 7 years ago

Hey guys, I've found a couple of kitchen helper projects for android that we might use as a starting point. They are the following: 1) https://github.com/picaro/cook-droid 2) https://github.com/egelfand/TinyKitchenHelper

I'm a little more inclined toward TinyKitchenHelper, but y'all might have a look and see which one y'all think is best.

forrest87 commented 7 years ago

I've been looking at the code, and something I've realized about Android applications is that there is not Java class containing a main method. Apparently, the Manifest.xml sort of acts as the driver in conjunction with the Java class that extends Activity. I've been going to over a few tutorials going over XML because I really am only a somewhat familiar with HTML, and I haven't worked with it in for a couple of years.

forrest87 commented 7 years ago

xml_learning

I've been doing some tutorials from Udacity on XML design for android in order to have a better understanding of how the XML elements of the code work. I'm not sure the beginner level stuff on the tutorials really get into a lot of how the AndroidManifest.XML file works, but having gone over them. I feel like I just generally understand the syntax and general meaning of that particular file.

forrest87 commented 7 years ago

mainactivity

This screenshot is from the AndroidManifest.XML file. I think that this little activity tag shows us where the main routine occurs. I think so at least.

forrest87 commented 7 years ago

Also, that line "android:name="com.example.tinykitchenhelper.EntryPage" refers to the EntryPage java class, which extends the Activity class. You may notice on the AndroidManifest.xml file that a lot of </> tags exist and that between each one a particular Java class is embedded a particular activity. The way an Android program is set up is starting to make more sense to me. Anyway, I think I'm still going to need to learn more XML to properly understand some of the design and layout features better.