public void InstallApp(AndoridDevice device, string[] apps) { foreach (string i in apps) { InstallApp(device, i); } }
public void InstallApp(AndoridDevice device, string app) { InstallAppArg temp = new InstallAppArg(); temp.device = device; temp.app = app; new Thread(new ParameterizedThreadStart(_InstallApp)).Start(temp); }
public Devices(AndoridDevice device, AppImageListPanel andoridAppImageListPanel, string uid, string username) { InitializeComponent(); this.uid = uid; this.username = username; platform = Platform.Android; this.andoridDevice = device; this.andoridAppImageListPanel = andoridAppImageListPanel; this.label1.Text = device.DeivceId; AndoridDeviceManger.GetShareInstance().OnInstallAppComplete += Devices_OnInstallAppComplete; player = new System.Media.SoundPlayer(Config.GetShareInstance().GetValue("Wav")); if (device.Status == AndoridDeviceStatus.OnLine) { label2.Text = "手机连接成功,请安装应用"; } else { label2.Text = "手机连接成功,但没有安装权限,请授权"; } }