Saturday, July 30, 2016

Android Studio 2.1.2: Installing Genymotion plugin

THIS PAGE IS OUT OF DATE. Genymotion does not provide free anymore

Software:
  • Android Studio 2.1.2
  • Android SDK 25.1.7
  • Java 1.8.0_60
  • VirtualBox 5.1.2
  • Genymotion 2.7.2 
  • Windows 10 build 10586
We assume all softwares above already installed.
To install plugin into Android Studio 2.1.2 do these steps:
  1. From Android Studio go to File -> Settings... -> Plugins -> Browse repositories...
  2. In search box type genymotion and install
  3. Point your genymotion installation directory. File -> Settings... -> Other Settings -> Genymotion and fill Select the path to the Genymotion folder, for example C:\Program Files\Genymobile\Genymotion
  4. Your Genymotion icon will show on Toolbar. To show this, go to View and check on Toolbar.
Troubleshooting for Genymotion: Unable to start the Genymotion virtual device on VirtualBox Host-Only Network.
  1. Go to Network and Sharing Center -> Change adapter settings.
  2. Right click on VirtualBox Host-Only Network and select Properties
  3. Checked on VirtualBox NDIS6 Bridged Networking Driver
  4. Do this on all VirtualBox Host-Only Network for example VirtualBox Host-Only Network #2
References:

Friday, July 29, 2016

Connecting ADB to Android 4.2.2 devices

Enabling Developer mode on devices (phone):
  1. Go to Settings -> About phone
  2. Tap on Build number until message looks like "... you are already a developer ..."
Enabling Developer options on devices:
  1. Go to Settings -> Developer options
  2. Turn it on and let device to allow development settings
  3. Check on USB debugging to enable it and let device to allow debugging via USB
Connect your device to your PC. Notification USB debugging connected will appear.
Run adb devices to make sure the device connected to adb properly.
>adb devices
List of devices attached
J32V2ML17X026640        device
If you have multiple adb.exe on your pc, make adb from Android SDK as default by put reference to this file into path. In Windows:
  1. Go to Control Panel -> System -> Advanced system settings
  2. Go to Environment Variables -> System Variables, then select variable Path then click Edit
  3. Add your path to correct adb.exe location from Android SDK, for example C:\Java\android-sdk-windows\platform-tools
Tested on MITO A150 Android 4.2.2, PC Windows 10 SL, AMD Processor.
To turn off debugging, go to Settings -> Developer Options uncheck on USB debugging. Next time you want to test your application, just check on USB Debugging.
References:

Thursday, July 7, 2016

Install Android 4.4 x86 r5 in VirtualBox 5 Windows 10

I use NOX App Player to run Android on PC Windows base, to play Clash of Clan. BlueStack 2 has a problem, it almost stuck on every starting up, I remove/uninstall it. I try Android 4.4 x86 as alternative, hope Android 6 x86 stable become available soon. Have fun.... 
Prerequisite:
Install:
  1. Create VirtualBox 
    • Name: Android 4.4 x86
    • Type: Linux
    • Version: Other Linux (32-bit)
    • Memory size 1024MB
    • Virtual Harddisk
    • Type: VDI
    • Storage on Physical hard disk: dynamic allocated
    • File location and size
    • Location: D:\virtualboximages\Android 4.4 x86.vdi
    • Size: 8GB
  2. Mounting android 4.4 x86 installation images
    • Setting -> Storage
    • Controller IDE -> Optical Drive -> Location: D:\Master\android emulator\android-x86-4.4-r5.iso
  3. Install android 4.4 x86
    • Android 4.4 x86 -> Start
    • Select Installation Android-x86 to harddisk
    • Please seect a partition to install Adnroid-x86: sda unknow 
    • Please seect a filesystem to format sda: ext2 (Ext3 not support)
    • Do you want to install boot lader GRUB?: Skip
    • Do you want to install EFI GRUB2?: Skip
    • Do you want o install /system directory as read-write?: Yes
    • Wait until Installing Adnroid-x86 100%
References: