\hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity}{}\doxysection{com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity Class Reference}
\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity}\index{com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}}


Main Activity class This activity is the entry point of the app and is responsible for handling User Authentication and Landing page view.  


Inheritance diagram for com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity}
\end{center}
\end{figure}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_1_1_simple_adapter}{Simple\+Adapter}}
\begin{DoxyCompactList}\small\item\em Adapter class (Inner Class) for implementing recycler view. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a2cd029cc84e78c59b576be165c6a4bfd}{on\+Create\+Context\+Menu}} (Context\+Menu menu, View view, Context\+Menu.\+Context\+Menu\+Info menu\+Info)
\item 
void \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_addfd597b6a5ec138c8dd6a5f46b36f61}{on\+Activity\+Result}} (int request\+Code, int result\+Code, Intent data)
\item 
void \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a1a49a8c57896a1d0f168828cdc702361}{on\+Resume}} ()
\item 
boolean \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a548430c98a85b2abccde936a8a6c8ed7}{on\+Create\+Options\+Menu}} (Menu menu)
\item 
boolean \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_aa247bb5a3dcb3c62eae90e673677af5c}{on\+Options\+Item\+Selected}} (Menu\+Item item)
\end{DoxyCompactItemize}
\doxysubsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a391fe745e1755fdf43929717dc4e7ded}{on\+Create}} (Bundle saved\+Instance\+State)
\item 
void \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a5af985e4fe2ceff5e3eca71f9d9d1d4b}{on\+Pause}} ()
\item 
Recycler\+View.\+Layout\+Manager \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a8f4d78cd0e56bdcf91d4ccb12001ecdb}{get\+Layout\+Manager}} ()
\item 
int \mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_ad99d690850a49fee1d1743177603a152}{get\+Default\+Item\+Count}} ()
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Main Activity class This activity is the entry point of the app and is responsible for handling User Authentication and Landing page view. 

Definition at line 52 of file Main\+Activity.\+java.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_ad99d690850a49fee1d1743177603a152}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_ad99d690850a49fee1d1743177603a152}} 
\index{com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}!getDefaultItemCount@{getDefaultItemCount}}
\index{getDefaultItemCount@{getDefaultItemCount}!com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}}
\doxysubsubsection{\texorpdfstring{getDefaultItemCount()}{getDefaultItemCount()}}
{\footnotesize\ttfamily int com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+get\+Default\+Item\+Count (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}}

Helper method

\begin{DoxyReturn}{Returns}
integer 100 
\end{DoxyReturn}


Definition at line 367 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a8f4d78cd0e56bdcf91d4ccb12001ecdb}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a8f4d78cd0e56bdcf91d4ccb12001ecdb}} 
\index{com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}!getLayoutManager@{getLayoutManager}}
\index{getLayoutManager@{getLayoutManager}!com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}}
\doxysubsubsection{\texorpdfstring{getLayoutManager()}{getLayoutManager()}}
{\footnotesize\ttfamily Recycler\+View.\+Layout\+Manager com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+get\+Layout\+Manager (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}}

Layout manager for recycler view

\begin{DoxyReturn}{Returns}
Linear\+Layout\+Manager instance 
\end{DoxyReturn}


Definition at line 359 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_addfd597b6a5ec138c8dd6a5f46b36f61}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_addfd597b6a5ec138c8dd6a5f46b36f61}} 
\index{com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}!onActivityResult@{onActivityResult}}
\index{onActivityResult@{onActivityResult}!com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}}
\doxysubsubsection{\texorpdfstring{onActivityResult()}{onActivityResult()}}
{\footnotesize\ttfamily void com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+on\+Activity\+Result (\begin{DoxyParamCaption}\item[{int}]{request\+Code,  }\item[{int}]{result\+Code,  }\item[{Intent}]{data }\end{DoxyParamCaption})}

Standard method for handling the outcome of an activity. If user signs in is successful then only take the user to main page. Else force the user to login in first


\begin{DoxyParams}{Parameters}
{\em request\+Code} & \\
\hline
{\em result\+Code} & \\
\hline
{\em data} & \\
\hline
\end{DoxyParams}


Definition at line 319 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a391fe745e1755fdf43929717dc4e7ded}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a391fe745e1755fdf43929717dc4e7ded}} 
\index{com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}!onCreate@{onCreate}}
\index{onCreate@{onCreate}!com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}}
\doxysubsubsection{\texorpdfstring{onCreate()}{onCreate()}}
{\footnotesize\ttfamily void com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+on\+Create (\begin{DoxyParamCaption}\item[{Bundle}]{saved\+Instance\+State }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}}

\mbox{\hyperlink{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a391fe745e1755fdf43929717dc4e7ded}{on\+Create()}} implementation Overridden method. In this method initial life cycle of the app is implemented. If user is not authenticated then user is sent for login/signup, else database instance and main view is initialized 
\begin{DoxyParams}{Parameters}
{\em saved\+Instance\+State} & \\
\hline
\end{DoxyParams}


Definition at line 154 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a2cd029cc84e78c59b576be165c6a4bfd}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a2cd029cc84e78c59b576be165c6a4bfd}} 
\index{com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}!onCreateContextMenu@{onCreateContextMenu}}
\index{onCreateContextMenu@{onCreateContextMenu}!com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}}
\doxysubsubsection{\texorpdfstring{onCreateContextMenu()}{onCreateContextMenu()}}
{\footnotesize\ttfamily void com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+on\+Create\+Context\+Menu (\begin{DoxyParamCaption}\item[{Context\+Menu}]{menu,  }\item[{View}]{view,  }\item[{Context\+Menu.\+Context\+Menu\+Info}]{menu\+Info }\end{DoxyParamCaption})}

Create context menu for long press actions


\begin{DoxyParams}{Parameters}
{\em menu} & \\
\hline
{\em view} & \\
\hline
{\em menu\+Info} & \\
\hline
\end{DoxyParams}


Definition at line 294 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a548430c98a85b2abccde936a8a6c8ed7}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a548430c98a85b2abccde936a8a6c8ed7}} 
\index{com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}!onCreateOptionsMenu@{onCreateOptionsMenu}}
\index{onCreateOptionsMenu@{onCreateOptionsMenu}!com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}}
\doxysubsubsection{\texorpdfstring{onCreateOptionsMenu()}{onCreateOptionsMenu()}}
{\footnotesize\ttfamily boolean com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+on\+Create\+Options\+Menu (\begin{DoxyParamCaption}\item[{Menu}]{menu }\end{DoxyParamCaption})}

Creating main menu


\begin{DoxyParams}{Parameters}
{\em Menu} & object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
boolean 
\end{DoxyReturn}


Definition at line 378 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_aa247bb5a3dcb3c62eae90e673677af5c}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_aa247bb5a3dcb3c62eae90e673677af5c}} 
\index{com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}!onOptionsItemSelected@{onOptionsItemSelected}}
\index{onOptionsItemSelected@{onOptionsItemSelected}!com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}}
\doxysubsubsection{\texorpdfstring{onOptionsItemSelected()}{onOptionsItemSelected()}}
{\footnotesize\ttfamily boolean com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+on\+Options\+Item\+Selected (\begin{DoxyParamCaption}\item[{Menu\+Item}]{item }\end{DoxyParamCaption})}

Defines behaviours for the menu items.


\begin{DoxyParams}{Parameters}
{\em item} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Boolean 
\end{DoxyReturn}


Definition at line 389 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a5af985e4fe2ceff5e3eca71f9d9d1d4b}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a5af985e4fe2ceff5e3eca71f9d9d1d4b}} 
\index{com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}!onPause@{onPause}}
\index{onPause@{onPause}!com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}}
\doxysubsubsection{\texorpdfstring{onPause()}{onPause()}}
{\footnotesize\ttfamily void com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+on\+Pause (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}}

Define what happens when user closes the app Overridden method 

Definition at line 278 of file Main\+Activity.\+java.

\mbox{\Hypertarget{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a1a49a8c57896a1d0f168828cdc702361}\label{classcom_1_1sudogeeks_1_1talking__reminder_1_1_main_activity_a1a49a8c57896a1d0f168828cdc702361}} 
\index{com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}!onResume@{onResume}}
\index{onResume@{onResume}!com.sudogeeks.talking\_reminder.MainActivity@{com.sudogeeks.talking\_reminder.MainActivity}}
\doxysubsubsection{\texorpdfstring{onResume()}{onResume()}}
{\footnotesize\ttfamily void com.\+sudogeeks.\+talking\+\_\+reminder.\+Main\+Activity.\+on\+Resume (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Define the behaviour of the app in case user comes back after suspending the app. -\/Recreate recycler view \+: This is done so that newly created reminders are also displayed 

Definition at line 340 of file Main\+Activity.\+java.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
C\+:/\+Users/\+Raushan Raj/\+Studio\+Projects/\+Talking\+Reminder2/\+Talking\+Reminder/app/src/main/java/com/sudogeeks/talking\+\_\+reminder/Main\+Activity.\+java\end{DoxyCompactItemize}
