@@ -0,0 +1,1726 @@
+package com.kkbox.toolkit.ui;%0A%0Aimport android.content.Intent;%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.FragmentActivity;%0A%0Aimport com.kkbox.toolkit.ui.KKActivityDelegate;%0Aimport com.kkbox.toolkit.ui.KKFragment;%0Aimport com.kkbox.toolkit.ui.KKServiceActivity;%0A%0Apublic class KKActivity extends FragmentActivity implements KKServiceActivity %7B%0A%0A%09private KKActivityDelegate delegate;%0A%0A%09public KKActivity() %7B%0A%09%09delegate = new KKActivityDelegate(this);%0A%09%7D%0A%0A%09@Override%0A%09public void startActivityIfNoDialog(Intent intent) %7B%0A%09%09delegate.startActivityIfNoDialog(intent);%0A%09%7D%0A%0A%09@Override%0A%09public void finishIfNoDialog() %7B%0A%09%09delegate.finishIfNoDialog();%0A%09%7D%0A%0A%09@Override%0A%09public void startActivityForResultIfNoDialog(Intent intent, int requestCode) %7B%0A%09%09delegate.startActivityForResultIfNoDialog(intent, requestCode);%0A%09%7D%0A%0A%09@Override%0A%09public void sendMessageToActiveSubFragments(Bundle arguments) %7B%0A%09%09delegate.sendMessageToActiveSubFragments(arguments);%0A%09%7D%0A%0A%09@Override%0A%09public void finishAllKKActivity() %7B%0A%09%09delegate.finishAllKKActivity();%0A%09%7D%0A%0A%09@Override%0A%09public void activateSubFragment(KKFragment fragment) %7B%0A%09%09delegate.activateSubFragment(fragment);%0A%09%7D%0A%0A%09@Override%0A%09public void deactivateSubFragment(KKFragment fragment) %7B%0A%09%09delegate.deactivateSubFragment(fragment);%0A%09%7D%0A%0A%09@Override%0A%09public void onServiceStarted() %7B%7D%0A%09%0A%09@Override%0A%09protected void onCreate(Bundle savedInstanceState) %7B%0A%09%09super.onCreate(savedInstanceState);%0A%09%09delegate.onCreate(savedInstanceState);%0A%09%7D%0A%0A%09@Override%0A%09protected void onResume() %7B%0A%09%09super.onResume();%0A%09%09delegate.onResume();%0A%09%7D%0A%0A%09@Override%0A%09protected void onPause() %7B%0A%09%09super.onPause();%0A%09%09delegate.onPause();%0A%09%7D%0A%0A%09@Override%0A%09protected void onDestroy() %7B%0A%09%09super.onDestroy();%0A%09%09delegate.onDestroy();%0A%09%7D%0A%7D%0A

add a KKActivity