Android Open Source - dropdroid Drop Droid Config






From Project

Back to project page dropdroid.

License

The source code is released under:

GNU General Public License

If you think the Android project dropdroid 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.fjaviermo.Utils;
/*  w w w  . ja  v a2  s  .  c  o m*/
import android.content.Context;

import com.dropbox.sync.android.DbxAccount;
import com.dropbox.sync.android.DbxAccountManager;
import com.dropbox.sync.android.DbxException;
import com.dropbox.sync.android.DbxFileSystem;

public class DropDroidConfig {

    private DropDroidConfig() {}

    public static final String APP_KEY = "tre5u0zdqv0wnv8";
    public static final String APP_SECRET = "ytmc69de98qhplx";

    public static DbxAccountManager getAccountManager(Context context)
    {
        return DbxAccountManager.getInstance(context.getApplicationContext(), APP_KEY, APP_SECRET);
    }
    
  public static DbxFileSystem getDbxFileSystem(DbxAccountManager accountManager) {
    DbxAccount account = accountManager.getLinkedAccount();
    if (account != null) {
      try {
        return DbxFileSystem.forAccount(account);
      } catch (DbxException.Unauthorized e) {
        // Account was unlinked asynchronously from server.
        return null;
      }
    }
    return null;
  }
}




Java Source Code List

com.fjaviermo.Utils.DropDroidConfig.java
com.fjaviermo.Utils.Util.java
com.fjaviermo.adapter.EpubAdapter.java
com.fjaviermo.comparator.EpubDateComparator.java
com.fjaviermo.comparator.EpubNameComparator.java
com.fjaviermo.dropdroid.CoverImageDialogFragment.java
com.fjaviermo.dropdroid.EpubListFragment.java
com.fjaviermo.dropdroid.EpubLoader.java
com.fjaviermo.dropdroid.MainActivity.java