ทำงานได้เร็วและดีกว่า Emulator มาก เหมาะกับการใช้ Test โปรแกรมที่เขียนโดย B4A ครับ

Reff 1 from B4A

  1. Install Virtual Box
  2. Download one of VM’s (OVA files) from BuilDroid
  1. Double-click the OVA which should start Virtual Box and import it. If not, import the OVA from within Virtual Box File menu>Import
  2. BEFORE running the VM, change the following under Settings > Network:
    • Change [Adapter1] Attached to = Host-only Adpater
    • Change [Adapter2] Attached to = Bridged Adpater then select your Ethernet adapter card under Name
  3. Click Apply
  4. Double-click the buildroid_vbox86p_xxx to start the Android VM
  5. From the Android VM click Buildroid VM Configuration icon to find out the IP settings
  6. Enable USB debugging in Settings > Developer Options
  7. Establish a connection via Androids ADB. Tip: Create *.BAT file with the following script, changing path/IP settings to suit):

Quote:

c:
cd \Program Files\Android\android-sdk\platform-tools\
adb connect 192.168.56.101
adb devices
pause
exit 

If all is well B4a should be able to compile and send the app straight to the running Android VM
Windows keys and their Android actions (Ice cream Sandwich)

  • Android BACK key —> Escape key
  • Android HOME key —> Home key
  • Android MENU key —> F1 or F10
  • Android POWER button —> End key
  • Right Control = Default HOST key (break out of virtual Android)

Install Google Play

Here are the steps :

  • Download the file buildroid-gapps-ics-20120317-signed.tgz
  • Get the management IP address of your Buildroid VM (“Buildroid VM Confiruation” tool) and do “adb connect 1.2.3.4″
  • Copy the tgz file to android with “adb push buildroid-gapps-ics-20120317-signed.tgz” /sdcard/
  • Connect to the android shell using “adb shell” and execute the following commands :
  
      su
      mount  -o  remount,rw  /system
      tar  -xvzf  /sdcard/buildroid-gapps-ics-20120317-signed.tgz
      mount -o remount,ro /system
      reboot

Your VM will reboot and you should have google apps including Market/Play.

You won’t have some Google Apps, like Maps, but they can be downloaded from the Market/Play.

You can also use a “for testing purpose only” VirtualBox image here :

Leave a Reply