Recent

Author Topic: Manual start of Android Studio Emulators  (Read 2496 times)

loaded

  • Hero Member
  • *****
  • Posts: 824
Manual start of Android Studio Emulators
« on: October 23, 2021, 02:09:27 pm »
Hi All,
Due to some problems I've had before on the subject, I created a small application for manual launching of Android Studio emulators in windows operating system, it works very well for me, let's put it here, maybe it will be useful for others.

Code: Pascal  [Select][+][-]
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. var
  3.   jre_path:String='D:\Android Studio\jre\jre\bin';
  4.   emu_path:String='C:\Users\mali.aydin\AppData\Local\Android\Sdk\emulator\emulator.exe';
  5.   emu_name:String='Pixel_3a_API_29';
  6. begin
  7.   ShellExecute(Application.handle, 'open', 'cmd.exe',
  8.       PChar('/c "cd '+jre_path+' &&  '+emu_path+' -netdelay none -netspeed full -avd '+emu_name+'"  ' ), nil, SW_HIDE);
  9. end;  

Let's not forget to set the String variables according to our system. ;D
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

 

TinyPortal © 2005-2018