0

I try to get on top of Android (two tutorials successful), I came across this problem: Step 5 of http://developer.android.com/guide/topics/ui/layout/gridview.html, says "create a new class..." where to create it?

Eclipse says "in its own file", where should the new file be?

Toon Krijthe
  • 52,876
  • 38
  • 145
  • 202

1 Answers1

0

Unless there are packages involved, wherever the other classes are.

Jesse Jashinsky
  • 10,313
  • 6
  • 38
  • 63
  • if you mean in MainActivity.java, where 'public class MainActivity extends Activity' is defined, then trying to define 'public class ImageAdapter extends BaseAdapter' in that file fails. – user1701333 Sep 26 '12 at 21:04
  • What? No, I mean the same folder as the other classes. Each class should be in its own file. From the sound of it, you might want to take a tutorial in Java before going into Android. – Jesse Jashinsky Sep 27 '12 at 14:54