对不起,我是Android应用程序的新手.创建.我已经提到了几乎所有的解决方案,但这不起作用......我在下面的简单代码中没有看到任何问题.我的应用很简单,加载启动画面,然后加载webview.下面是什么问题?
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.wwes.EZEE/com.wwes.EZEE.SecondPage}; have you declared this activity in your Manifext.xml
Run Code Online (Sandbox Code Playgroud)
[评论]请.看下面,我已经宣布了.怎么了?
MainActivity.java:在这里我加载了splashscreen图像.
package com.example.EZEE;
import com.wwes.EZEE.SecondPage;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//Thread for displaying the Splash Screen //
Thread splash_screen = new Thread() {
public void run() {
try {
sleep(1000);
} catch (Exception e){
e.printStackTrace();
} finally {
Intent i = new Intent(MainActivity.this, SecondPage.class);
startActivity(i);
}
}
}; splash_screen.start();
}
@Override …Run Code Online (Sandbox Code Playgroud)