Android Open Source - CloudPaste-Android Cloud Paste A D N Client






From Project

Back to project page CloudPaste-Android.

License

The source code is released under:

MIT License

If you think the Android project CloudPaste-Android 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.alwaysallthetime.cloudpaste.client;
/*from ww  w.  j a  v  a  2s  .c  o m*/
import com.alwaysallthetime.adnlib.AppDotNetClient;
import com.alwaysallthetime.messagebeast.ADNApplication;
import com.alwaysallthetime.messagebeast.ADNSharedPreferences;
import com.alwaysallthetime.messagebeast.ConfigurationUtility;

public class CloudPasteADNClient {
    //stick a client id here.
    public static final String CLIENT_ID = "ApLZCN8QxnG2D54JcnUkUApH88nLHZeC";
    public static final String AUTH_SCOPES = "basic,messages";

    private static AppDotNetClient sInstance;

    public static AppDotNetClient getInstance() {
        if(CLIENT_ID == null) {
            throw new RuntimeException("You gosta specify a value for CloudPasteADNClient.CLIENT_ID, bro.");
        }
        if(sInstance == null) {
            sInstance = new AppDotNetClient(ADNApplication.getContext());

            if(ADNSharedPreferences.isLoggedIn()) {
                sInstance.setToken(ADNSharedPreferences.getAccessToken());
                ConfigurationUtility.updateConfiguration(sInstance);
            }
        }
        return sInstance;
    }
}




Java Source Code List

com.alwaysallthetime.cloudpaste.BaseCloudPasteActivity.java
com.alwaysallthetime.cloudpaste.BaseLoginActivity.java
com.alwaysallthetime.cloudpaste.CloudPaste.java
com.alwaysallthetime.cloudpaste.LaunchActivity.java
com.alwaysallthetime.cloudpaste.LoginWebViewActivity.java
com.alwaysallthetime.cloudpaste.MainActivity.java
com.alwaysallthetime.cloudpaste.MessageManagerInstance.java
com.alwaysallthetime.cloudpaste.ShareToCloudPasteActivity.java
com.alwaysallthetime.cloudpaste.adapter.MainListViewAdapter.java
com.alwaysallthetime.cloudpaste.client.CloudPasteADNClient.java