Пример #1
0
 private void connectWithSubApp(Engine engine, Object[] objects, SubApp subApp) {
   Intent intent = new Intent(this, SubAppActivity.class);
   intent.putExtra(ConnectionConstants.ENGINE_CONNECTION, engine);
   intent.putExtra(ConnectionConstants.SEARCH_NAME, objects);
   intent.putExtra(ConnectionConstants.SUB_APP_CONNECTION, subApp.getAppPublicKey());
   intent.putExtra(ConnectionConstants.SUB_APP_CONNECTION_TYPE, subApp.getType());
   intent.setFlags(
       Intent.FLAG_ACTIVITY_NEW_TASK
           | Intent.FLAG_ACTIVITY_CLEAR_TASK
           | Intent.FLAG_ACTIVITY_CLEAR_TOP);
   finish();
   overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
   startActivity(intent);
 }