MainActivity

public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener

Main app activity of the app Dr Tinder. Displays the 2 main fragments: Selection and Chatlist

Fields

DELETE_PROF

public static final int DELETE_PROF

Methods

onActivityResult

protected void onActivityResult(int requestCode, int resultCode, Intent data)

onBackPressed

public void onBackPressed()

Missing Api Reference

onCreate

protected void onCreate(Bundle bundle)

Called when the activity is starting

Parameters:
  • bundle – If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in onSaveInstanceState(Bundle). Note: Otherwise it is null.

onCreateOptionsMenu

public boolean onCreateOptionsMenu(Menu menu)

Called when created options menu.

Parameters:
  • menu – Created menu
Returns:

true to display the menu as menu

onDestroy

public void onDestroy()

Destroy all fragments and loaders. Clears app cache

onNavigationItemSelected

public boolean onNavigationItemSelected(MenuItem item)

Called when an item in the navigation menu is selected.

Parameters:
  • item – The selected item
Returns:

true to display the item as the selected item

onOptionsItemSelected

public boolean onOptionsItemSelected(MenuItem item)

Called when a option item is selected

Parameters:
  • item – The selected item
Returns:

true to display the item as the selected item

onStart

protected void onStart()

onStop

protected void onStop()