How to run the android emulator inside Android Studio?

Now, after starting out the project, and running of gradle successfully which means that the project built so far has been comprehensively saved so that in the case you close this and start it again tomorrow that should be available from the point you leave out the project. In the extreme right of android studio you have project explorer tab where the entire relational informations regarding projects can be found easily.

Project explorer:

Here every components are hiding inside app and here you can find manifests and so many other folders. AndroidManifest.xml contains manifests folder. Inside java folder under app you could easily write the java code out there. Then we have resources (res) folder where we can insert image and other medias into apps.

On the extreme downside of android studio and on its left hand side you keep an eye on the progress bar which provides information regarding the building of project, gradle and running of background processes and this is very important and meaningful considering the presence of running of background processes you can slow down the speed of developing project and wait for the background process to stop so that each and every part of running of process can be at a very comfortable level.

Progress bar:

Once the movement of progress bar is complete you can begin editing the project. Once progress bar stops moving which means progress completely loaded with android studio and from here you can start building the project. After studying about two sessions and this session is all about running android apps inside android emulator so that we can preview exactly what the app is all about and what are pros and cons of it.

Android Studio

Progress bar

We cannot directlly run the code or the project with emulator. Before it we have to check the compatibilty issues with it and then run the project with emulator. First part we have to check out is that whether android software development kit (SDK) and Java development kit (JDK) are in proper path inside project structure. If you have installed android studio complete bundle which is almost 2GB for Windows 7 and beyond then probably both SDK and JDK have installed in correct path.

Project structure:

It is better to check this out and for this you have to reach out to ‘Project Structure’ (Ctrl+Alt+Shift+S) or you can go to ‘File’ and then to ‘Project Structure’. In this you can see the directory of android SDK location. This locations will be used for new projects and for existing projects. As we have downloaded the comprehensive android studio, here java development kit is embedded with it and its location is automatically compatible with android SDK.

Android Studio

Project Structure

In order to run the emulator you will have to install ‘Intel emulator Accelerator package’ inside android studio. It is the process where the virtual android smart phone should run with it. During the process of android studio installation there are chances that you might have install it. So first we should check this out with ‘SDK manager’ where listing of all downloadable software packages can be seen.

 

SDK MANAGER:

Inside ‘SDK MANAGER’ we have the list of all the android packages we need from time to time while developing android app. Android studio provides the most compatible environment for us so that we could write the code of android easily. For creation of application we do need many packages in term of software development kit so that we could construct android apps.

Android Studio

SDK MANAGER

From SDK MANAGER we could find each and every software information and their update formats and from time to time Google asks for the update and you could add more and more software packages in accordance with your need for app development. Each Android SDK Platform package includes the android platform and sources pertaining to an API level by default. Once installed Android Studio will automatically check for updates. Check ‘show package details’ to display individual components.

Go to ‘SDK Tools’ and check ‘show package details’ to display individual components.Here search for ‘Intel x86 Emulator Accelerator (HAXM installer)’ and if the check box is filled then it means it had been installed already and if not, connect to internet and then check that box and click ‘OK and android studio will automatically download ‘Intel x86 Emulator Accelerator (HAXM installer)’.

 

This emulator will not going to work unless your computer has hardware acceleration enabled. If it is not then this emulator will not going to work. In order to do this you have to enter into BIOS settings of computer and this should be done by experts or geeks and for this you can contact your computer maintainance manager for this. It is advisable not to enter into BIOS settings all by yourself and it is advisable to contact computer adviser of yours so that they can enable hardware accelerator.

ANDROID STUDIO

SDK TOOLS

This process of enable of hardware accelerator of computer is not essential but if so then accelerator can run with faster process if not the emulator will take some time to load. It is also important to know that installing of emulator also not mandatory but this can reduce the worry of checking of error upfront without worry about running on actual devices. Till this time we had learnt about how to set the android emulator so that we can easily see the execution of app we have just made in real time.

This apparently removes all such worries about any of incompatible issues pertaining to android. In the later on studies we will learn about how to install emulator and adjust it to show about device as well as in the case of your computer has not Intel processor instead of AMD processor then how to enable such emulator function. For this another package needs to be installed with android studio and everything will be discussed in the next chapters. Android Studio is specifically designed for non-geeks so that they could enter into the arena of coding and find out how easier to develop an android apps.

Slowly we will be learning about different characteristics and elements of android studio before venturing into opening of creation of application so that ultimately we could feel easier to work with it having no difficulty in building an app with it. It is important to have some sort of basic ideas about building of java coding and in the subsequent process of learning we will also have some detailed look how to run and use android emulator in non-intel processor devices. We will also have some look at java codings so that ultimately when we do use with android studio that process should be completely easier for us to learn.

Public on the web – Anyone on the Internet can find and edit): How to run the android emulator inside Android Studio?
This entry was posted in Android Studio on by .

About Mohan Manohar Mekap

Mohan Manohar is a blogger from India who founded Ittech back in 2007. He is passionate about all things tech and knows the Internet and computers like the back of his hand.

Leave a Reply

Your email address will not be published. Required fields are marked *