Android Open Source - Ocypode Abstract Robo Activity






From Project

Back to project page Ocypode.

License

The source code is released under:

MIT License

If you think the Android project Ocypode 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.ocypode.activity.robo;
//from w  w w  .  j a  va  2 s.  c  om
import roboguice.activity.RoboActivity;
import android.app.Service;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;

import com.ocypode.activity.IResultCallbackActivity;
import com.ocypode.component.delegate.IStartActivityDelegate;
import com.ocypode.component.delegate.StartActivityDelegate;
import com.ocypode.component.delegate.adaptor.StartActivityAdaptor;

abstract public class AbstractRoboActivity extends RoboActivity implements IStartActivityDelegate {
    
  private IStartActivityDelegate mStartActivityDelegate;

  @Override
  protected void onCreate(Bundle arg0) {
    super.onCreate(arg0);    

    mStartActivityDelegate = new StartActivityDelegate(new StartActivityAdaptor(this));
  }  
  
  @Override
  public void pushActivity(Class<?> screen) {
    mStartActivityDelegate.pushActivity(screen);
  }
  
  @Override
  public void pushActivity(Class<?> screen, Bundle extras) {
    mStartActivityDelegate.pushActivity(screen, extras);
  }
  
  @Override
  public void popActivity(Class<?> screen) {
    mStartActivityDelegate.popActivity(screen);
  }
  
  @Override
  public void popActivity(Class<?> screen, Bundle extras) {
    mStartActivityDelegate.popActivity(screen, extras);
  }
  
  @Override
  public void goToActivity(Class<?> screen) {
    mStartActivityDelegate.goToActivity(screen);
  }  
  
  @Override
  public void reorderActivityToFront(Class<?> screen, Bundle extras) {
    mStartActivityDelegate.reorderActivityToFront(screen, extras);
  }
  
  @Override
  public void goToActivityWithAnimation(Class<?> screen, int enterAnim,
      int exitAnim) {
    mStartActivityDelegate.goToActivityWithAnimation(screen, enterAnim, exitAnim);
  }
  
  @Override
  public void goToActivityWithAnimation(Class<?> screen, Bundle extras,
      int enterAnim, int exitAnim) {
    mStartActivityDelegate.goToActivityWithAnimation(screen, extras, enterAnim, exitAnim);    
  }
  
  @Override
  public void goToActivityWithNoAnimation(Class<?> screen) {
    mStartActivityDelegate.goToActivityWithNoAnimation(screen);
  }
  
  @Override
  public void goToActivityWithNoAnimation(Class<?> screen, Bundle extras) {
    mStartActivityDelegate.goToActivityWithNoAnimation(screen, extras);
  }
  
  @Override
  public void goToActivityWithAnimationSettingFlagClearTop(Class<?> screen,
      int enterAnim, int exitAnim) {
    mStartActivityDelegate.goToActivityWithAnimationSettingFlagClearTop(screen, enterAnim, exitAnim);
  }
  
  @Override
  public void goToActivity(String action) {
    mStartActivityDelegate.goToActivity(action);
  }
  
  @Override
  public void openBrowser(String url) {
    mStartActivityDelegate.openBrowser(url);
  }
  
  @Override
  public void launchSubActivity(Class<?> subActivityClass,
      IResultCallbackActivity callback) {
    mStartActivityDelegate.launchSubActivity(subActivityClass, callback);
  }
  
  @Override
  public void launchSubActivity(Intent i, IResultCallbackActivity callback) {
    mStartActivityDelegate.launchSubActivity(i, callback);
  }
  
  @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    
    mStartActivityDelegate.onActivityResult(requestCode, resultCode, data);
  }
  
  @Override
  public void startService(Class<?> cl) {
    mStartActivityDelegate.startService(cl);
  }
  
  @Override
  public void stopService(Class<?> cl) {
    mStartActivityDelegate.stopService(cl);
  }
  
  @Override
  public void bindService(Service service, Class<?> serviceClass,
      ServiceConnection serviceConnection) {
    mStartActivityDelegate.bindService(service, serviceClass, serviceConnection);
  }

}




Java Source Code List

com.ocypode.BuildConfig.java
com.ocypode.BuildConfig.java
com.ocypode.activity.IResultCallbackActivity.java
com.ocypode.activity.robo.AbstractRoboActivity.java
com.ocypode.activity.robo.AbstractRoboFragmentActivity.java
com.ocypode.activity.robo.fragment.AbstractRoboFragment.java
com.ocypode.bluetooth.BluetoothHelper.java
com.ocypode.component.Typefaced.java
com.ocypode.component.animation.AnimationCallbackListener.java
com.ocypode.component.delegate.IStartActivityDelegate.java
com.ocypode.component.delegate.StartActivityDelegate.java
com.ocypode.component.delegate.adaptor.IStartActivityAdaptor.java
com.ocypode.component.delegate.adaptor.StartActivityAdaptor.java
com.ocypode.component.delegate.adaptor.StartFragmentAdaptor.java
com.ocypode.component.view.button.TypefacedButton.java
com.ocypode.component.view.dialog.AlertDialogBuilder.java
com.ocypode.component.view.dialog.ProgressDialogBuilder.java
com.ocypode.component.view.dialog.titledescription.TitleDescriptionArrayAdapter.java
com.ocypode.component.view.dialog.titledescription.TitleDescriptionModel.java
com.ocypode.component.view.edittext.TypefacedEditText.java
com.ocypode.component.view.imageview.CircleImageView.java
com.ocypode.component.view.listview.LockableListView.java
com.ocypode.component.view.scrollview.LockableScrollView.java
com.ocypode.component.view.textview.AutoResizeTextView.java
com.ocypode.component.view.textview.TypefacedTextView.java
com.ocypode.repository.AbstractRepository.java
com.ocypode.utility.ICallback.java
com.ocypode.utility.Logcat.java
com.ocypode.utility.Utility.java
com.ocypode.utility.bitmap.BitmapUtil.java
com.ocypode.utility.formatter.CurrencyFormatter.java
com.ocypode.utility.formatter.DateFormatter.java
com.ocypode.utility.formatter.NumberFormatter.java
com.ocypode.utility.validation.StringValidation.java
com.ocypode.widgets.list.OCListView.java