Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Implementing Designs for Android Customizing a GridView for Friends Converting a ListView to a GridView

guys this challenge is giving me problem

when i open it it keeps on loading and saying restart challenge, over and over again, i have proceeded and other challenges are working fine, my network is ok but this challenge is not loading

activity_products.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <ListView
        android:id="@android:id/list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true" />

</RelativeLayout>
ProductsActivity.java
import android.os.Bundle;
import android.widget.GridView;

// This parent class no longer applies. Switch it to Activity
public class ProductsActivity extends ListActivity {

    /*
     * Some code has been omitted for brevity!
     */

    // Declare mGridView here!

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_products);

        // Set mGridView here!
    }
}

3 Answers

This is now fixed - I can't replicate the previous issue. This must have been intermittent.

Hi there,

Yes, I'm getting the same - that's one for Ben Jakuben to fix!

I'll tweet him too!

Steve.

I don't know if I can embed the tweet in here, but will try!

<blockquote class="twitter-tweet" lang="en"><p lang="en" dir="ltr">Hi <a href="https://twitter.com/benjakuben">@benjakuben</a> This challenge is constantly restarting <a href="http://t.co/m1zuUakPvN">http://t.co/m1zuUakPvN</a> Forum post is: <a href="https://t.co/GSmOeGpE0D">https://t.co/GSmOeGpE0D</a> Thanks!</p>ā€” Steve (@OnlySteveH) <a href="https://twitter.com/OnlySteveH/status/611929852455817217">June 19, 2015</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>