Android Test Tools

Source: Internet
Author: User

Sometimes it is found that the information burned into the phone is missing some files, such as an icon, or a MP3 file and so on, to do a small tool to check whether the specified phone contains the corresponding file.

It's fun to operate the phone with a program that executes the phone's commands.

Static voidMain (string[] args) {            stringresult =""; stringError =""; stringstr ="";  Do{Console.WriteLine ("please connect your phone via the data cable ..."); stringcmd ="adb wait-for-devices"; Processexcuter.run (Global.Adb.ToString (), CMD,10000, outResult outerror); BOOLIsOk =false; IsOk= Comm.waitfordevices (refresult); Console.WriteLine (" -"+result); if(!result. Contains ("Success"))                {                    return; } Console.WriteLine ("<--OK"); System.Diagnostics.Stopwatch SW=NewSystem.Diagnostics.Stopwatch ();


Sw. Start ();

Console.ReadLine ();
Return
}

Console.WriteLine ("Fail:total" + (decimal) sw. Elapsedmilliseconds + "S");
Console.ReadLine ();
Return
}

{
IsOk = false;
}
}

                     Console.WriteLine ("Missing audio file" Checksum audio file failed ".");
                     Console.WriteLine ("Fail:total" + (decimal) sw. Elapsedmilliseconds + "S");
                     Console.ReadLine ();
                     return;
               }
                Console.WriteLine ("--" + cmd);
                Console.WriteLine ("<--OK:" + result);

SW.                 Stop (); Console.WriteLine ("\ n"); Console.WriteLine ("Pass:total"+ (decimal) SW. Elapsedmilliseconds +"S"); Console.WriteLine ("\ n"); Console.WriteLine ("press ENTER to continue ..."); STR=Console.readkey ().            Key.tostring (); }  while(str. ToUpper (). Trim () = ="ENTER"|| !string.            IsNullOrEmpty (Error));        Console.ReadLine (); }

Android Test Tools

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.