Skip navigation links
A C D E F G I M O P R S T U W 

O

onBackPressed() - Method in class com.example.mealtrackerapp.activities.MainActivity
Handles back button press.
onBackPressed() - Method in class com.example.mealtrackerapp.activities.WelcomeActivity
Making sure that back button leaves the app and does not go back to main activity
onClick(View) - Method in class com.example.mealtrackerapp.activities.MainActivity
When the calendar button is clicked, the current day data is stored/updated into the day data database and the date picker dialog pops up
onClick(View) - Method in class com.example.mealtrackerapp.activities.SetupActivity
When clicked, the calendar button opens a date picker dialog for birth date
onCreate(Bundle) - Method in class com.example.mealtrackerapp.activities.AboutActivity
Just displays text
onCreate(Bundle) - Method in class com.example.mealtrackerapp.activities.FoodEntryActivity
Reference to UI elements.
onCreate(Bundle) - Method in class com.example.mealtrackerapp.activities.GraphActivity
References to UI elements, creation of spinners and corresponding array lists and adapters.
onCreate(Bundle) - Method in class com.example.mealtrackerapp.activities.MainActivity
Creation of databases.
onCreate(Bundle) - Method in class com.example.mealtrackerapp.activities.SetupActivity
 
onCreate(Bundle) - Method in class com.example.mealtrackerapp.activities.WelcomeActivity
 
onCreate(SQLiteDatabase) - Method in class com.example.mealtrackerapp.databases.DayDataDBH
Used only the first time.
onCreate(SQLiteDatabase) - Method in class com.example.mealtrackerapp.databases.FoodLogDBH
Used only the first time.
onCreateOptionsMenu(Menu) - Method in class com.example.mealtrackerapp.activities.MainActivity
Inflating three dot options menu object (reading xml and making menu visible in app)
onItemSelected(AdapterView<?>, View, int, long) - Method in class com.example.mealtrackerapp.activities.FoodEntryActivity
Store meal selection in string
onItemSelected(AdapterView<?>, View, int, long) - Method in class com.example.mealtrackerapp.activities.GraphActivity
Handling click event on items of both spinners.
onNothingSelected(AdapterView<?>) - Method in class com.example.mealtrackerapp.activities.FoodEntryActivity
 
onNothingSelected(AdapterView<?>) - Method in class com.example.mealtrackerapp.activities.GraphActivity
What is done when nothing is selected in the spinner
onOptionsItemSelected(MenuItem) - Method in class com.example.mealtrackerapp.activities.AboutActivity
On up button press (home), making sure that the date is sent back to the main
onOptionsItemSelected(MenuItem) - Method in class com.example.mealtrackerapp.activities.FoodEntryActivity
On up button press (home), making sure that the date is sent back to the main
onOptionsItemSelected(MenuItem) - Method in class com.example.mealtrackerapp.activities.GraphActivity
On up button press (home), making sure that the date is sent back to the main
onOptionsItemSelected(MenuItem) - Method in class com.example.mealtrackerapp.activities.MainActivity
Define action on menu item selection.
onOptionsItemSelected(MenuItem) - Method in class com.example.mealtrackerapp.activities.SetupActivity
On up button press (home), making sure that the date is sent back to the main
onPause() - Method in class com.example.mealtrackerapp.activities.MainActivity
Data saved on pause in db just in case
onStart() - Method in class com.example.mealtrackerapp.activities.FoodEntryActivity
By default the delete button is hidden.
onStart() - Method in class com.example.mealtrackerapp.activities.GraphActivity
Default values for the graphs are set to calories for the last 7 days.
onStart() - Method in class com.example.mealtrackerapp.activities.MainActivity
By default, displays the data related to the current date.
onStart() - Method in class com.example.mealtrackerapp.activities.SetupActivity
 
onUpgrade(SQLiteDatabase, int, int) - Method in class com.example.mealtrackerapp.databases.DayDataDBH
Handles actions on upgrade to another version.
onUpgrade(SQLiteDatabase, int, int) - Method in class com.example.mealtrackerapp.databases.FoodLogDBH
Handles actions on upgrade to another version.
A C D E F G I M O P R S T U W 
Skip navigation links