Hello, all. First time posting here. I did as thorough a search as my tired eyes would allow me, back and forth to make sure someone had already pointed this out. So I apologize if this issue has been discussed before. I found nothing anywhere to suggest someone else had this problem.
First of all, I wanted to learn about using Tab Views in Android. I found this: http://developer.android.com/guide/tutorials/views/hello-tabwidget.html "GREAT!" I thought. Until I copied verbatim the example code and layout supplied only to find that Eclipse was NOT happy with my code. Alright, so I did some experimentation (wasted time) and finally found that the tutorial does not discuss what one needs to IMPORT at the beginning of the .java file. In case you're having this problem, you need to import these at the beginning of your source code after package declaration: import android.app.TabActivity; import android.os.Bundle; import android.widget.TabHost; On top of this, the example has this line of code in it: mTabHost = getTabHost(); I could not get code to work until I declared what TYPE mTabHost was supposed to be, the following allowed my code to work: TabHost mTabHost = getTabHost(); My question is this: -> If the example code is not in error, then why could I not make the code work as per the instructions explicitly supplied? Also, how was I supposed to know about importing android.widget.TabHost??? I couldn't find that information ANY where (and this is supposed to be a beginners guide to Android). Lastly, did I really need to declare mTabHost as being of type TabHost? The example didn't say to do it. So you see, I'm having trouble finding out why no one else has had this problem. Maybe it's because I am an idiot, and that is perfectly fine with me. But how was I supposed to know where to find the answers I needed? Hopefully this saves some time for others trying to learn this. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

