Android - My Simple ListView/Toast app crashes on startup… any ideas?
问题 I am creating a simple ListView app to learn more about programming for android. However, this simple code (which is showing no errors whatsoever in Eclipse) is simply crashing on startup in the emulator. Any ideas? public class MainActivity extends Activity { static final String[] FRUITS = { "Apple", "Avocado", "Banana", "Blueberry", "Coconut", "Durian", "Guava", "Kiwifruit", "Jackfruit", "Mango", "Olive", "Pear", "Sugar-apple" }; protected void onCreate(Bundle savedInstanceState) { super