

The AVD cannot have higher memory limit than the HAXM. HAXM is not working and emulator runs in emulation modeĮmulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration. Now, lets modify the app to accept the user name as input and display greeting message with user name on click of a button.Īndroid Hello World app to accept user input If that doesn’t work, you can open the HelloWorldApp from the apps on the emulator as shown in following images : Sometimes, your app should just show up by default as shown in screen below : It should look like this after start up :

The emulator may take few minutes to start up. Refer the button in the image below :Ĭlicking on the Play button, will bring up the Choose Emulator window as shown below : Android Studio will now create a project based on our choices in the above steps.įor testing the app, we can deploy it on an Emulator.įor this, click on the Play button in the android studio. The last file, Menu Resource Name will contain the name of xml file that will contain any menu items that should appear when menu button is clicked. You can keep the auto-suggested name or change it as per your requirement.

The contents of Title field will be used as the name of the app. The next field, Layout Name contains the name of the UI Layout xml file that will contain layout information for out app. So, lets rename the Activity Name to HelloActivity.

The Activity Name will contain the name of the class that will contain our code. It will also contain code that handles user interactions.įor this app, lets just select Blank Activity and click Next. This window provides choices for adding activity to our app.Īn Activity is a special Java class that provides starting point for our app. The next window is Add an activity to Mobile window. For now, lets use the default setting API 15: Android 4.0.3 (IceCreamSandwich) and click Next. In this screen, the Phone and Tablet selection would be already checked.
