android - ActivityNotFoundException: No Activity found to handle Intent { act=splashscreen.app.test.CLEARSCREEN }? -


i m getng problem..basically simple creating splash screen aftr loading splash screen want load main form here m getng problem............i hav added activity manifest well.... here java code

public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.splash); thread logotimer=new thread(){ public void run() { try { int timer=0; while(timer<5000) { sleep(100); timer=timer+100; } startactivity(new intent("splashscreen.app.test.clearscreen")); } catch (interruptedexception e) { // todo auto-generated catch block e.printstacktrace(); } { finish(); } } }; logotimer.start(); } } 

and here manifest activty hav included

 <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:name=".splashscreenactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".menu" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.clearscreen" /> <category android:name="android.intent.category.default" /> </intent-filter> </activity> </application> 

change line startactivity(new intent("splashscreen.app.test.clearscreen"));

startactivity(new intent(youractivity.this,secondactivity.class)); 

for information don't use activity or class name menu in future.

in manifest use,

<activity android:name=".menu" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> </intent-filter> </activity> 

or

<activity android:name=".menu"/> 

refer tutorial making splashscreen http://www.codeproject.com/articles/113831/an-advanced-splash-screen-for-android-app


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -