Exceptio for tab demo

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Exceptio for tab demo

Postby jagtap.jj1 » Fri Jan 02, 2009 11:58 am

I am building sample tab demo, When i launch the app it gives the error of force close

Here is logcat if anybody have suggestions, plz reply me.

LogCat :
I/ActivityManager( 46): Starting activity: Intent { flags=0x10000000 comp={org
.igloo.tabdemo/org.igloo.tabdemo.TabDemo} }
D/AndroidRuntime( 512): Shutting down VM
D/dalvikvm( 512): DestroyJavaVM waiting for non-daemon threads to exit
I/dalvikvm( 512): DestroyJavaVM shutting VM down
D/dalvikvm( 512): HeapWorker thread shutting down
D/dalvikvm( 512): HeapWorker thread has shut down
D/jdwp ( 512): JDWP shutting down net...
D/jdwp ( 512): +++ peer disconnected
I/dalvikvm( 512): Debugger has detached; object registry had 1 entries
D/dalvikvm( 512): VM cleaning up
D/dalvikvm( 512): LinearAlloc 0x0 used 541260 of 4194304 (12%)
I/ActivityManager( 46): Start proc org.igloo.tabdemo for activity org.igloo.ta
bdemo/.TabDemo: pid=521 uid=10022 gids={}
I/jdwp ( 521): received file descriptor 10 from ADB
D/AndroidRuntime( 521): Shutting down VM
W/dalvikvm( 521): threadid=3: thread exiting with uncaught exception (group=0x4
0010e28)
E/AndroidRuntime( 521): Uncaught handler: thread main exiting due to uncaught e
xception
E/AndroidRuntime( 521): java.lang.RuntimeException: Unable to start activity Co
mponentInfo{org.igloo.tabdemo/org.igloo.tabdemo.TabDemo}: java.lang.IllegalArgum
entException: you must specify a way to create the tab indicator.
E/AndroidRuntime( 521): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2140)
E/AndroidRuntime( 521): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2156)
E/AndroidRuntime( 521): at android.app.ActivityThread.access$1800(Activi
tyThread.java:112)
E/AndroidRuntime( 521): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1580)
E/AndroidRuntime( 521): at android.os.Handler.dispatchMessage(Handler.ja
va:88)
E/AndroidRuntime( 521): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 521): at android.app.ActivityThread.main(ActivityThrea
d.java:3742)
E/AndroidRuntime( 521): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 521): at java.lang.reflect.Method.invoke(Method.java:5
15)
E/AndroidRuntime( 521): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:739)
E/AndroidRuntime( 521): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:497)
E/AndroidRuntime( 521): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 521): Caused by: java.lang.IllegalArgumentException: you must
specify a way to create the tab indicator.
E/AndroidRuntime( 521): at android.widget.TabHost.addTab(TabHost.java:19
1)
E/AndroidRuntime( 521): at org.igloo.tabdemo.TabDemo.onCreate(TabDemo.ja
va:19)
E/AndroidRuntime( 521): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1122)
E/AndroidRuntime( 521): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2103)
E/AndroidRuntime( 521): ... 11 more
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests