三星GS3特定错误文件。适用于任何其他Android设备。

三星GS3特定错误文件。适用于任何其他Android设备。,android,android-layout,samsung-mobile,Android,Android Layout,Samsung Mobile,所以我有一个主要的活动是这样的 protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(R.layout.splash_layout); ImageView imageView = (ImageView) findViewById(R.id.logo); imageView.setImageResourc

所以我有一个主要的活动是这样的

protected void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    this.setContentView(R.layout.splash_layout);
    ImageView imageView = (ImageView) findViewById(R.id.logo);
    imageView.setImageResource(R.drawable.logo_p); 
    Handler handler = new Handler();
    handler.postDelayed(new Runnable(){

        @Override
        public void run() {

            jump();
        }

    }, 3000);
}
像这样的布局

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<ImageView
    android:id="@+id/logo"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    android:paddingTop="5sp"
    android:paddingLeft="8dp"
    android:paddingRight="8dp"
    android:paddingBottom="5sp"
     />
当我在三星Galaxy S2安卓4.0.3上调试它时,图像出现,跳转函数被成功调用。当我在三星Galaxy S3 Android 4.1.2上调试它时,LogCat抛出了这个错误

05-18 19:51:05.832: E/(20438): <s3dReadConfigFile:75>: Can't open file for reading
跳转函数从未被调用,应用程序完全崩溃。我不知道这个错误是什么以及如何修复它。这个问题也有人问过,但在撰写本文时还没有答案

只要imageview未设置为源,应用程序就可以工作。如果我注释掉这一行,我仍然会得到错误,但是会调用跳转函数。如果我根本不调用setContentView,则不会出现错误