Hello Guys,
I am working on android ADB commands to take a back up from android device. I use this command to take backup
"-s xxxxxxxxxxxxxx backup -apk -all -f backup.ab" from Mobile device when I used this command a pop up display in mobile (Take backup/Do no take backup). I touched the take backup and everything working fine. Now when I have on android dongle when I used same command to do this then how can I click on options which I got in mobile because android stick/dongle don't have screen. I am stuck with this issue.
Sorry for wrong engish.
Below are the code
Process p = new Process();
p.StartInfo.FileName = @"adb.exe";
p.StartInfo.Arguments ="-s xxxxxxxxxxxxxx backup -apk -all -f backup.ab";
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.Start();
string regular = p.StandardOutput.ReadToEnd();
string error = p.StandardError.ReadToEnd();
Thanks