List of usage examples for android.accessibilityservice AccessibilityService startActivity
@Override
public void startActivity(Intent intent)
From source file:com.crea_si.eviacam.service.EngineControl.java
public EngineControl(AccessibilityService as, Engine e) { mAccessibilityService = as;/*from w ww . j av a 2s . co m*/ mEngine = e; mEngine.setOnFinishProcessFrame(this); mPowerManagement = new PowerManagement(as, this); // Service notification mServiceNotification = new ServiceNotification(as, mServiceNotificationReceiver); mServiceNotification.enable(); // Start wizard or the full engine if (Preferences.get().getRunTutorial()) { // register notification receiver LocalBroadcastManager.getInstance(as).registerReceiver(this.mFinishWizardReceiver, new IntentFilter(WIZARD_CLOSE_EVENT_NAME)); Intent dialogIntent = new Intent(as, com.crea_si.eviacam.wizard.WizardActivity.class); dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); as.startActivity(dialogIntent); } else start(); }