Is there a way I can get application from Context. I noticed that activity and service has getApplication() method but Context does not.
I am using/extending the GCMBaseIntentService and the
protected abstract void onMessage (Context context, Intent intent)
gives me a context as a parameter. I would like to get the Application object so I can downcast it to MyApplication and retrieve some variables
Context#getApplicationContext will return your