WildLuka wrote: > ok ,, i've just noticed that you can pass an Intent to setContent() to > start an activity. so I have defined and declared a MyMapActivity, > but what I get now is a NullPointException as soon as I hit the > MapTab ... here it is: > > Uncaught handler: thread Main exiting due to uncaught exception > java.lang.NullPointerException > at android.widget.TabHost > $IntentContentStrategy.getContentView(TabHost.java:556) > at android.widget.TabHost.setCurrentTab(TabHost.java:238) > at android.widget.TabHost$1.onTabSelectionChanged(TabHost.java:95) > at android.widget.TabWidget > $TabClickListener.onClick(TabWidget.java:134)
Can you post: -- your layout -- your MyMapActivity class (at least the class declaration and onCreate()/onResume()/wherever you're adding your tabs to the TabHost) Without those, it will be difficult to determine where the problem lies. -- Mark Murphy (a Commons Guy) http://commonsware.com The Busy Coder's Guide to Android Development -- coming in June 2008! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

