Code example for FragmentActivity

Methods: finish

    long[] mList = new long[] {};
    public void onCancel(DialogInterface dialog) {
    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);
Connect your IDE to all the code out there  Get Codota for Java