Source:
<code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_run_test); Intent intent = getIntent(); <START> Uri data = intent.getData(); <END> if (Intent.ACTION_VIEW.equals(intent.getAction())) { Uri uri = intent.getData(); String mv = uri.getQueryParameter("mv"); if (mv != null){ if (versionCompare(BuildConfig.VERSION_NAME, mv) >= 0) { Set<String> parameters = uri.getQueryParameterNames(); String tn = uri.getQueryParameter("tn"); String ta = uri.getQueryParameter("ta"); String td = uri.getQueryParameter("td"); String test = NetworkMeasurement.getTestName(this, tn); if (test.length() > 0){ test_name = tn; configureScreen(td, ta); } else { Alert.alertDialog(this, getString(R.string.invalid_parameter), getString(R.string.test_name) + " : " + tn); } } else { Alert.alertDialogTwoButtons(this, getString(R.string.ooniprobe_outdate), getString(R.string.ooniprobe_outdate_msg), new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { final String appPackageName = getPackageName(); try { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName))); } catch (android.content.ActivityNotFoundException anfe) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("<LINK_0>" + appPackageName))); } } }); } } } }</code><technical_language>I this variable is unused</technical_language>

Target:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_run_test); urls = (TextView) findViewById(R.id.urls); runButton = (AppCompatButton) findViewById(R.id.run_test_button); title = (TextView) findViewById(R.id.run_test_message); testTitle = (TextView) findViewById(R.id.test_title); testImage = (ImageView) findViewById(R.id.test_logo); test_progress = (ProgressBar) findViewById(R.id.progressIndicator); testUrlList = (RecyclerView) findViewById(R.id.urlList); Intent intent = getIntent(); if (Intent.ACTION_VIEW.equals(intent.getAction())) { Uri uri = intent.getData(); String mv = uri.getQueryParameter("mv"); if (mv != null){ if (versionCompare(BuildConfig.VERSION_NAME, mv) >= 0) { String tn = uri.getQueryParameter("tn"); String ta = uri.getQueryParameter("ta"); String td = uri.getQueryParameter("td"); String test = NetworkMeasurement.getTestName(this, tn); if (test.length() > 0){ test_name = tn; configureScreen(td, ta); } else { Alert.alertDialogWithAction(this, getString(R.string.invalid_parameter), getString(R.string.test_name) + " : " + tn, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { goToMainActivity(); } }); } } else { Alert.alertDialogWithAction(this, getString(R.string.ooniprobe_outdate), getString(R.string.ooniprobe_outdate_msg), new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { final String appPackageName = getPackageName(); try { openPlayStore("market://details?id=" + appPackageName); } catch (android.content.ActivityNotFoundException anfe) { openPlayStore("<LINK_0>" + appPackageName); } } }, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { goToMainActivity(); } }); } } } }