Skip to main content

Table Layout in Tab Layout in Android



I've got a problem in Android. I'm quite new in this thing so please don't treat me so hard. So my problem is i wanna integrate a table layout in a tab layout. I wrote the code and the IDE doesn't show any problems, it install it to the emulator with no problem, but when i wanna run the application it gives me an error(unfortunately, applicaton name has stopped). And that's it. I link some code here. I thanks forward your helps.







package hu.EasyBank;



import android.app.TabActivity;

import android.content.Intent;

import android.os.Bundle;

import android.widget.TabHost;



public class BetetAttekint extends TabActivity {

/** Called when the activity is first created. */

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.main);





TabHost tabhost=getTabHost();

TabHost.TabSpec spec;

Intent intent;



intent=new Intent().setClass(this, BetetAttekint.class);



spec=tabhost.newTabSpec("betet").setIndicator("Betétek Áttekintése").setContent(intent);

tabhost.addTab(spec);











}





}




Comments

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?