Code example for Intent

Methods: getActivityputExtrasetFlags

0
 
    private Account mAccount; 
    private ArrayList<MessageReference> mMessageRefs; 
 
    public static PendingIntent getIntent(Context context, final Account account, final ArrayList<MessageReference> refs) { 
        Intent i = new Intent(context, NotificationDeleteConfirmation.class); 
        i.putExtra(EXTRA_ACCOUNT, account.getUuid()); 
        i.putExtra(EXTRA_MESSAGE_LIST, refs); 
        i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); 
 
        return PendingIntent.getActivity(context, account.getAccountNumber(), i, PendingIntent.FLAG_UPDATE_CURRENT); 
    } 
 
    @Override 
    public void onCreate(Bundle icicle) { 
        super.onCreate(icicle); 
 
        setTheme(K9.getK9Theme() == K9.Theme.LIGHT ? 
                R.style.Theme_K9_Dialog_Translucent_Light : R.style.Theme_K9_Dialog_Translucent_Dark); 
 
        final Preferences preferences = Preferences.getPreferences(this);