rico_1 wrote:
> Hello!
>
> I have problem with extends TabActivity.
>
> My code is:
> import android.widget.TabHost;
> import android.content.Intent;
> import android.app.TabActivity;
> import android.app.Activity;
> import android.os.Bundle;
>
> public class MyProgram extends TabActivity {
>
> /** Called when the activity is first created. */
> TabHost mTabHost;
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
>
>
> }
> }
>
> When I run this simple program it return "The application ... has
> stopped" and LogCat
> Error java.lang.NullPointerException....
>
> when I change TabActivity to Activity everything is ok.
> What is wrong?
For starters, you don't add any tabs.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android App Developer Books: http://commonsware.com/books.html
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---