package com.pixplicity.workshop.beginners.listviews;

import android.app.ListActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

public class CustomAdapterActivity extends ListActivity {

    private CustomAdapter mCustomAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mCustomAdapter = new CustomAdapter(this);
        getListView().setAdapter(mCustomAdapter);
    }

    @Override
    protected void onListItemClick(ListView l, View v, int position, long id) {
        // TODO Complete the `onListItemClick` method. Use the `position` to retrieve an `Animal` object from the `mCustomerAdapter` field and use the `animal.infoUrl` information to create a valid `Uri`
        Uri uri = null;
        Intent intent = new Intent(Intent.ACTION_VIEW, uri);
        startActivity(intent);
    }

}
@@ -658,195 +658,22 @@
 ODO 
-Complete the %60onListItemClick%60 method. Use the %60position%60 to retrieve an %60Animal%60 object from the %60mCustomerAdapter%60 field and use the %60animal.infoUrl%60 information to create a valid %60Uri%60
+Exercise 04.03
 %0A   
@@ -792,9 +792,10 @@
 %0A    %7D%0A%0A
-
 %7D
+%0A

Update CustomAdapterActivity.java