title: Activity becoming null
body: <p>In my application <code>getActivity()</code> returns null sometimes and so app crashes. This occurs very rarely, but it is reproducible when app is kept in background for long time. I use <code>getActivity()</code> to get context at various places. Is there any other method to get context in application? Is there any standards suggested? Is it good to use application context everywhere? </p>