View Single Post
  #1 (permalink)  
Old March 4th, 2010, 02:25 AM
alex_harding alex_harding is offline
Registered User
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Needed imports for Chapter 2 To-Do List Example

Not sure why the book failed to mention the proper imports needed for the chapter 2 to-do list example to compile correctly. If you're entering the code manually (this chpt. 2 to-do list example code is not available for download), add the following import statements or simply apply the control+shift+o import shortcut in eclipse.

import java.util.ArrayList;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnKeyListener;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListView;

Programming Android doesn't have to be like a raging hemorrhoid...

Last edited by alex_harding; March 4th, 2010 at 12:15 PM..
Reply With Quote