LiquidSmoothROMs/android_frameworks_base — comment on commit a17a7a834651b3b1fb3b8083e988707f5b952941
File: policy/src/com/android/internal/policy/impl/GlobalActions.java line 291
By JBirdVegas:

ok I've tried calling this 3 different ways why won't it allow me to run startActivity(Intent)

its in the apis http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent)

but causes build to error complaining about:

frameworks/base/policy/src/com/android/internal/policy/impl/GlobalActions.java:291: non-static method startActivity(android.content.Intent) cannot be referenced from a static context
Context.startActivity(new Intent(Intent.ACTION_MAIN).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK

then if I remove Context I get:
frameworks/base/policy/src/com/android/internal/policy/impl/GlobalActions.java:291: cannot find symbol
symbol: method startActivity(android.content.Intent)
startActivity(new Intent(Intent.ACTION_MAIN).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK

we are importing android.content.Context WTF?

any ideas on how I can call startActivity(android.content.Intent)? I understand that Context is static but how to get nonstatic Context to call startActivity on?