private void mPopupConrol_MouseUp(object sender, MouseButtonEventArgs e) { if (this.mMutePopup.IsOpen) { this.mMutePopup.IsOpen = false; } else { if (this.mClickHandler == null) { try { HTTPUtils.SendRequestToClient("markNotificationInDrawer", new Dictionary <string, string>() { { "vmname", this.VmName }, { "id", this.AndroidNotificationId } }, MultiInstanceStrings.VmName, 0, (Dictionary <string, string>)null, false, 1, 0, "bgp"); if (string.Compare(this.AppName, "Successfully copied files:", StringComparison.OrdinalIgnoreCase) == 0 || string.Compare(this.AppName, "Cannot copy files:", StringComparison.OrdinalIgnoreCase) == 0) { NotificationPopup.LaunchExplorer(this.mLblContent.Text); return; } Logger.Info("launching " + this.AppName); string packageName = "com.bluestacks.appmart"; string activityName = "com.bluestacks.appmart.StartTopAppsActivity"; string fileName = RegistryStrings.InstallDir + "\\HD-RunApp.exe"; if (!new JsonParser(this.VmName).GetAppInfoFromAppName(this.AppName, out packageName, out string _, out activityName)) { Logger.Error("Failed to launch app: {0}. No info found in json. Starting home app", (object)this.AppName); if (!string.IsNullOrEmpty(this.PackageName)) { Process.Start(fileName, string.Format((IFormatProvider)CultureInfo.InvariantCulture, "-p {0} -a {1} -vmname:{2}", (object)this.PackageName, (object)activityName, (object)this.VmName)); } } else { string str = "-json \"" + new JObject() { { "app_icon_url", (JToken)"" }, { "app_name", (JToken)this.AppName }, { "app_url", (JToken)"" }, { "app_pkg", (JToken)this.PackageName } }.ToString(Formatting.None).Replace("\"", "\\\"") + "\""; Process.Start(fileName, string.Format((IFormatProvider)CultureInfo.InvariantCulture, "{0} -vmname {1}", (object)str, (object)this.VmName)); } }