package android.example.com.fictionary;

import android.content.ContentResolver;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.UserDictionary;
import android.provider.UserDictionary.Words;
import android.support.v7.app.ActionBarActivity;
import android.widget.ListView;
import android.support.v4.widget.SimpleCursorAdapter;

/**
 * This is the central activity for the Provider Dictionary Example App. The purpose of this app is
 * to show an example of accessing the {@link Words} list via its' Content Provider.
 */
public class MainActivity extends ActionBarActivity {

    private final String[] COLUMNS_TO_BE_FOUND = new String[]{
            Words.WORD, Words.FREQUENCY
    };

    private static final int[] LAYOUT_ITEMS_TO_FILL = new int[] {
            android.R.id.text1,
            android.R.id.text2
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Get the TextView which will be populated with the Dictionary ContentProvider data.
        ListView dictListView = (ListView) findViewById(R.id.dictionary_list_view);

        // Get the ContentResolver which will send a message to the ContentProvider
        ContentResolver resolver = getContentResolver();

        // Get a Cursor containing all of the rows in the Words table
        Cursor cursor = resolver.query(UserDictionary.Words.CONTENT_URI, null, null, null, null);

        // -- YOUR CODE BELOW HERE -- //

        // Set the Adapter to fill the standard two_line_list_item layout with data from the Cursor.
        SimpleCursorAdapter adapter = new SimpleCursorAdapter(getApplicationContext(), android.R.layout.two_line_list_item, cursor,COLUMNS_TO_BE_FOUND, LAYOUT_ITEMS_TO_FILL,0);

        // Don't forget to attach the adapter to the ListView
        dictListView.setAdapter(adapter);
    }
}

@@ -358,200 +358,8 @@
 r;%0A%0A
-/**%0A * This is the central activity for the Provider Dictionary Example App. The purpose of this app is%0A * to show an example of accessing the %7B@link Words%7D list via its' Content Provider.%0A */
 %0Apub
@@ -834,632 +834,242 @@
     
-// Get the TextView which will be populated with the Dictionary ContentProvider data.%0A        ListView dictListView = (ListView) findViewById(R.id.dictionary_list_view);%0A%0A        // Get the ContentResolver which will send a message to the ContentProvider%0A        ContentResolver resolver = getContentResolver();%0A%0A        // Get a Cursor containing all of the rows in the Words table%0A        Cursor cursor = resolver.query(UserDictionary.Words.CONTENT_URI, null, null, null, null);%0A%0A        // -- YOUR CODE BELOW HERE -- //%0A%0A        // Set the Adapter to fill the standard two_line_list_item layout with data from the Cursor.
+ListView dictListView = (ListView) findViewById(R.id.dictionary_list_view);%0A%0A        ContentResolver resolver = getContentResolver();%0A%0A        Cursor cursor = resolver.query(UserDictionary.Words.CONTENT_URI, null, null, null, null);%0A%0A
 %0A   
@@ -1247,70 +1247,8 @@
 );%0A%0A
-        // Don't forget to attach the adapter to the ListView%0A
     

Update MainActivity.java