Can some one help me get the reference to the current activity from the Myapp that extends Application. I'm trying to implement a simple shake feature that uses the sesmic library. Once the shake is detected I need to have the reference to the current activity so that I can save a screen shot of the current view. I need to access the current activity something like
enter public class MyApp extends Application {
public onSomeTriggerCallThisFunction() {
Activity currentActivity = getCurrentActivity();
}}
Can someone help me with getCurrentActivity()