Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

fun facts

I am not able to launch Emulator, however I have followed all steps of setting it up from tutorial.

Generated code as follows :

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".FunFactsActivity">

 <TextView
    android:text="hello world"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

</RelativeLayout>

Please suggest as I am not able to move ahead in tutorial as my emulator itself is not getting launched. However I have as shown by Mr.Ben in tutorial.

Regards Ayush

Using Android Studio, click the icon that says AVD Manager. When the AVD Manager launches, make sure you have some devices defined. Click play on one of the defined devices, and wait at least 2-3 minutes. You should see log messages in Android Studio when it launches the virtual devices.

Other helpful details? What type of computer are you using, and what processor? The avd can be really slow to launch. On slower systems, you might have "slightly" better performance from genymotion.

...I can't stress this enough though...use a real phone to test when possible. Even an inexpensive offbrand or prepaid device will perform better than the AVD. The AVD is great for testing against multiple APIs though.