Create your own method inside onCreate() in android : How do I create a method inside onCreate() method? When I am creating its showing error:

Syntax error on token void @ expected

And if method can not be created inside onCreate method than please tell me how do I create a method outside the onCreate() and pass mContext and mActivity from the onCreate() method. 

Thanks in Advance