Wednesday, August 22, 2012

Installing an .apk file in android emulator


  1. Launch your emulator
  2. get an .apk file that you want to install in your emulator
  3. navigate to your android-sdk dir and search for adb.exe
  4. copy the location of the   adb.exe
  5. Right click on my computer and open Advanced Settings and click Environment Variable
  6. select Path from System Variables and click on Edit
  7. add a semi-colon ';' and Paste the location that we copied
  8. open cmd.exe
  9. change the directory to where you have the .apk file located.
  10. after you have reached the directory type :
            adb install filename.apk

and you are done .

Wednesday, August 1, 2012

HAX manager for android emulator

Intel released a new driver for android emulator so that it makes use of our computers GPU and runs faster 

To enable the driver follow the steps below :


  • open the SDK manager and download the Intel x86 Atom System Image for the platform you are working with (Intel x86 system image is only available for android 4.0.3 and android 2.3.3)
  • download the Intel Hardware Acceleration Execution Manager.
                       

  • after the download and install is complete see the location where the driver is downloaded by hovering  over at Installed text.


  • go to the directory and run the setup file
  • install the driver and configure the RAM size according to your system


  • to test that your driver is installed correctly run
  • CMD.exe as Administrator and type  
    sc query intelhaxm


  • open AVD manager
  • create a new avd and Target it at the platform for which you have downloaded the Intel x86 Atom System Image 
  • set the CPU to Intel Atom x86 .
  • enable GPU emulation by clicking on new In the Hardware column and select GPU emulation

  • set it to yes.
  • click on create avd and start the avd just created.
  • you see in the Starting Android Emulator dialog box its written that                            
                        avd runs in fast virt mode





Watch this video tutorial if you face any problem: