Android Open Source - AndroidFortunes Cloudy Fortunes Client






From Project

Back to project page AndroidFortunes.

License

The source code is released under:

Apache License

If you think the Android project AndroidFortunes 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 org.codechimp.androidfortunes;
/*  w w w  .  ja v  a 2  s.  co  m*/
import retrofit.RestAdapter;

public class CloudyFortunesClient {
    private static CloudyFortunesApiInterface CloudyFortunesService;

    public static CloudyFortunesApiInterface getCloudyFortunesApiClient() {
        if (CloudyFortunesService == null) {
            RestAdapter restAdapter = new RestAdapter.Builder()
                    .setEndpoint("https://cloudyfortunes.appspot.com/_ah/api/cloudyfortunes/v1")
                    .setLogLevel(RestAdapter.LogLevel.FULL)
                    .build();

            CloudyFortunesService = restAdapter.create(CloudyFortunesApiInterface.class);
        }

        return CloudyFortunesService;
    }
}




Java Source Code List

org.codechimp.androidfortunes.AlarmHelper.java
org.codechimp.androidfortunes.AlarmReceiver.java
org.codechimp.androidfortunes.CloudyFortunesApiInterface.java
org.codechimp.androidfortunes.CloudyFortunesClient.java
org.codechimp.androidfortunes.GeneralUserPreferencesFragment.java
org.codechimp.androidfortunes.MainActivity.java
org.codechimp.androidfortunes.MobileListenerService.java
org.codechimp.androidfortunes.NotifyHelper.java
org.codechimp.androidfortunes.OnBootReceiver.java
org.codechimp.androidfortunes.Quote.java
org.codechimp.androidfortunes.SettingsActivity.java
org.codechimp.androidfortunes.WearActivity.java
org.codechimp.androidfortunes.WearListenerService.java
org.codechimp.util.TimePreference.java
org.codechimp.util.WakeLock.java