Android Open Source - notes Dropbox Account Linking Dialog

From Project

Back to project page notes.


The source code is released under:

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <> Everyone is permitted to copy and distribute verbatim or...

If you think the Android project notes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.iliakplv.notes.gui.main.dialogs;
//w  w w  .  j a va 2 s  .com
import android.content.DialogInterface;
import android.os.Bundle;

import com.iliakplv.notes.R;
import com.iliakplv.notes.gui.main.MainActivity;

public class DropboxAccountLinkingDialog  extends DialogFragment {
  private static final String FRAGMENT_TAG = DropboxAccountLinkingDialog.class.getSimpleName();

  public Dialog onCreateDialog(Bundle savedInstanceState) {
    final MainActivity mainActivity = (MainActivity) getActivity();

    return new AlertDialog.Builder(getActivity())
        .setNegativeButton(R.string.dropbox_link_dialog_no, null)
        .setPositiveButton(R.string.dropbox_link_dialog_yes, new DialogInterface.OnClickListener() {
          public void onClick(DialogInterface dialog, int which) {

  public static void show(FragmentManager fm) {
    final DropboxAccountLinkingDialog dialog = new DropboxAccountLinkingDialog();, FRAGMENT_TAG);

Java Source Code List