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?
Best regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---