问:最近,我正在尝试创建一个Android应用,该应用的启动屏幕进入空白屏幕。但是,当我尝试加载下一个屏幕时,应用程序运行不正常,并在启动屏幕之后停止响应。请帮助我解决问题。
以下是一些错误详细信息:
04-12 13:28:30.809 1619-1619 /?I / InstallerConnection:正在连接...
[04-12 13:28:30.812 1307:1307 I /]
新连接
04-12 13:28:30.878 1619-1619 /?I / InstallerConnection:正在断开连接...
[04-12 13:28:30.878 1307:1307 E /]
eof
[04-12 13:28:30.879 1307:1307 E /]
无法读取尺寸
[04-12 13:28 :30.879 1307:1307 I /]
关闭连接
04-12 13:28:32.281 1619-1619 /?I / InstallerConnection:正在连接...
[04-12 13:28:32.281 1307:1307 I /]
新连接
04-12 13:28:55.943 1721-1721 / com.android.inputmethod.latin W / RichInputConnection:慢速InputConnection :GET_TEXT_BEFORE_CURSOR花了247毫秒。
04-12 13:29:06.520 1619-1619 / system_process W / IInputConnectionWrapper:不存在的InputConnection上的
reportFullscreenMode 04-12 13:30:13.513 2440-2865 / com.google.android.gms I / FA-SVC:应用评估正在开始起,版本:10298
04-12 13:30:15.044 2440-2985 / com.google.android.gms I / FA-SVC:此实例被标记为上传者
04-12 13:31:05.818 2440-2449 / com.google.android。 gms W / SQLiteConnectionPool:数据库'/data/user/0/com.google.android.gms/databases/networkstatistics.sqlite'的SQLiteConnection对象泄漏了!请修复您的应用程序,以正确结束正在进行的事务,并在不再需要数据库时将其关闭。
04-12 13:31:36.235 2440-2449 / com.google.android.gms W / SQLiteConnectionPool:数据库'/data/user/0/com.google.android.gms/databases/metrics.db'的SQLiteConnection对象被泄露了!请修复您的应用程序,以正确结束正在进行的事务,并在不再需要数据库时将其关闭。
04-12 13:31:36.241 2440-2449 / com.google.android.gms W / SQLiteConnectionPool:数据库'/data/user/0/com.google.android.gms/databases/help_responses.db的SQLiteConnection对象。 18'被泄露了!请修复您的应用程序,以正确结束正在进行的事务,并在不再需要数据库时将其关闭。
04-12 13:31:36.244 2440-2449 / com.google.android.gms W / SQLiteConnectionPool:数据库'/data/user/0/com.google.android.gms/databases/auto_complete_suggestions.db'的SQLiteConnection对象被泄露了!请修复您的应用程序,以正确结束正在进行的事务,并在不再需要数据库时将其关闭。
这是我的调试日志
答:尝试这个 ..............
@Override
受保护的无效onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.splash_screen);
final int SPLASH_DISPLAY_LENGTH = 5000;
新Handler()。postDelayed(新Runnable(){
@Override
公共无效run(){
Intent mainIntent =新的Intent(Splash_screen.this,Main_View.class);
startActivity(mainIntent);
完();
}
},SPLASH_DISPLAY_LENGTH);
}
}