Android Open Source - kido-android-tasks Shared Kidozen






From Project

Back to project page kido-android-tasks.

License

The source code is released under:

MIT License

If you think the Android project kido-android-tasks 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.kidozen.examples.services;
/* www  . j  a  v a 2s .  co m*/
import kidozen.client.KZApplication;
import kidozen.client.ServiceEvent;
import kidozen.client.ServiceEventListener;
import android.util.Log;

public enum SharedKidozen {
  INSTANCE;
  private KZApplication application;
  
  static String TENANT = "http://tenant";
  static String APP ="demo";
  static String USER ="your user @kidozen.com";
  static String PASS ="your secret";
  private static String TAG = "SharedKidozen";
  private static final Object lock = new Object();

  
  public static KZApplication Application() throws Exception {
      synchronized (lock) {
        INSTANCE.application = new KZApplication(TENANT,APP, true, new ServiceEventListener() {
          @Override
          public void onFinish(ServiceEvent e) {
            if (e.StatusCode==200) {
              lock.notify();
            }
          }
        });
      }
      
      INSTANCE.application.Authenticate("Kidozen", USER, PASS, new ServiceEventListener() {
        @Override
        public void onFinish(ServiceEvent e) {
          if (e.StatusCode==200) {
            Log.d(TAG, "AUTH Finish: " + e.Body);
          }
        }
      });
      
      return INSTANCE.application;
  }

}




Java Source Code List

com.kidozen.examples.services.DataHelper.java
com.kidozen.examples.services.IKidozenApplicationSetup.java
com.kidozen.examples.services.IKidozenAuthentication.java
com.kidozen.examples.services.IKidozenEmail.java
com.kidozen.examples.services.ITaskDeleteComplete.java
com.kidozen.examples.services.ITaskQueryComplete.java
com.kidozen.examples.services.ITaskSaveComplete.java
com.kidozen.examples.services.ITaskServicesResponse.java
com.kidozen.examples.services.ITaskUpdateComplete.java
com.kidozen.examples.services.KidozenHelper.java
com.kidozen.examples.services.SharedKidozen.java
com.kidozen.examples.tasks.MainActivity.java
com.kidozen.examples.tasks.TasksFragment.java