Code example for FragmentActivity

Methods: finish

0
 
    long[] mList = new long[] {};
 
    @Override 
    public void onCancel(DialogInterface dialog) {
        finish(); 
    } 
 
    @Override 
    public void onClick(DialogInterface dialog, int which) {
 
        long listId = Long.valueOf(mAllPlayLists.get(which).get("id"));
        String listName = mAllPlayLists.get(which).get("name");
        Intent intent;
        boolean mCreateShortcut = getIntent().getAction().equals(Intent.ACTION_CREATE_SHORTCUT);
 
        if (mCreateShortcut) {
            final Intent shortcut = new Intent();
            // shortcut.setAction(INTENT_PLAY_SHORTCUT); 
            shortcut.putExtra("id", listId);