/** Shows the Legal terms page to user */ private void acceptLegalTerms() { startActivityForResult( new Intent(AROCollectorSplashActivity.this, AROCollectorLegalTermsActivity.class), TERMS_ACTIVITY); // TODO:Adding code to launch Data Collector from Analyzer final Bundle apkCommandLineParameters = getIntent().getExtras(); if (apkCommandLineParameters != null) { // sendAnalyzerLaunchBroadcast(); final String mAROTraceFolderNamefromAnalyzer = apkCommandLineParameters.getString("TraceFolderName"); String mAROTraceStopDuration = apkCommandLineParameters.getString("TraceStopDuration"); if (mAROTraceStopDuration == null) { mAROTraceStopDuration = "0"; } mApp.setTcpDumpTraceFolderName(mAROTraceFolderNamefromAnalyzer); mApp.setTraceStopDuration(Integer.parseInt(mAROTraceStopDuration)); } else { mApp.setTcpDumpTraceFolderName(null); mApp.setTraceStopDuration(0); } if (mApp.getTraceStopDuration() > 0 && mApp.getTcpDumpTraceFolderName() != null) { mApp.setRQMCollectorLaunchfromAnalyzer(true); aroDCStartWatchTimer = new Timer(); aroDCStartWatchTimer.schedule( new TimerTask() { @Override public void run() { startMainActivity(); // Cancel the timers aroDCStartWatchTimer.cancel(); } }, ARO_LEGAL_AUTO_ACCEPT_TIME); } else { mApp.setRQMCollectorLaunchfromAnalyzer(false); } }