I'm trying to start an activity from a class that extends BroadcastReceiver.
public void onReceive(Context context, Intent intent) {
the problem is that parameter context is the Application context and not an Activity context.
Is there a way start an intent using the Application context?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…