Back to project page Ocypode.
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.
package com.ocypode.component.delegate.adaptor; /*from w ww . j av a 2 s .c o m*/ import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; public class StartActivityAdaptor implements IStartActivityAdaptor { private Activity mActivity; public StartActivityAdaptor(Activity activity) { this.mActivity = activity; } @Override public Context getContext() { return mActivity; } @Override public void startActivity(Intent intent) { mActivity.startActivity(intent); } @Override public void overridePendingTransition(int enterAnim, int exitAnim) { mActivity.overridePendingTransition(enterAnim, exitAnim); } @Override public void startActivityForResult(Intent intent, int requestCode) { mActivity.startActivityForResult(intent, requestCode); } @Override public void startService(Intent service) { mActivity.startService(service); } @Override public void stopService(Intent service) { mActivity.stopService(service); } @Override public void bindService(Intent service, ServiceConnection conn, int flags) { mActivity.bindService(service, conn, flags); } }