// Path: src/main/java/it/eternitywall/eternitywall/Preferences.java
// public class Preferences {
// 
//     public static final String NODES      = "nodes";
//     public static final String PASSPHRASE = "passphrase";
//     public static final String PIN        = "pin";
//     public static final String EMAIL      = "email";
//     public static final String CHK_ONE    = "ckone";
//     public static final String CHK_TWO    = "cktwo";
//     public static final String DONATION   = "donation";
//     public static final String TO_NOTIFY  = "tonotify";
//     public static final String ALIAS_NAME = "aliasname";
// }


import android.app.Activity;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import it.eternitywall.eternitywall.Preferences;
import it.eternitywall.eternitywall.R;
        AccountFragment fragment = new AccountFragment();
        Bundle args = new Bundle();
        args.putString(ARG_PARAM1, param1);
        args.putString(ARG_PARAM2, param2);
        fragment.setArguments(args);
        return fragment;
    }

    public AccountFragment() {
        // Required empty public constructor
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            mParam1 = getArguments().getString(ARG_PARAM1);
            mParam2 = getArguments().getString(ARG_PARAM2);
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View v= inflater.inflate(R.layout.fragment_account, container, false);
        FragmentTransaction transaction = getFragmentManager()
                .beginTransaction();

        final SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(getActivity());
// Path: src/main/java/it/eternitywall/eternitywall/Preferences.java
// public class Preferences {
// 
//     public static final String NODES      = "nodes";
//     public static final String PASSPHRASE = "passphrase";
//     public static final String PIN        = "pin";
//     public static final String EMAIL      = "email";
//     public static final String CHK_ONE    = "ckone";
//     public static final String CHK_TWO    = "cktwo";
//     public static final String DONATION   = "donation";
//     public static final String TO_NOTIFY  = "tonotify";
//     public static final String ALIAS_NAME = "aliasname";
// }


// Path: src/main/java/it/eternitywall/eternitywall/fragments/AccountFragment.java
import android.app.Activity;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import it.eternitywall.eternitywall.Preferences;
import it.eternitywall.eternitywall.R;

        AccountFragment fragment = new AccountFragment();
        Bundle args = new Bundle();
        args.putString(ARG_PARAM1, param1);
        args.putString(ARG_PARAM2, param2);
        fragment.setArguments(args);
        return fragment;
    }

    public AccountFragment() {
        // Required empty public constructor
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            mParam1 = getArguments().getString(ARG_PARAM1);
            mParam2 = getArguments().getString(ARG_PARAM2);
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View v= inflater.inflate(R.layout.fragment_account, container, false);
        FragmentTransaction transaction = getFragmentManager()
                .beginTransaction();

        final SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(getActivity());
        String passphrase=sharedPref.getString(Preferences.PASSPHRASE,null);