Code example for Context

Methods: startActivity

0
        intent.putExtra(EXTRA_START_INTENT, startIntent);
 
        // Make sure this activity is only running once 
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP);
 
        context.startActivity(intent);
        return true; 
    } 
 
 
    private Intent mStartIntent;
 
    private TextView mUpgradeText;
 
    private LocalBroadcastManager mLocalBroadcastManager;
    private UpgradeDatabaseBroadcastReceiver mBroadcastReceiver;
    private IntentFilter mIntentFilter;
    private Preferences mPreferences;
 
 
    @Override