Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/215.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我的应用程序在android中意外停止,请重试_Android - Fatal编程技术网

我的应用程序在android中意外停止,请重试

我的应用程序在android中意外停止,请重试,android,Android,我的android代码中有一个错误: case R.id.bSQLOpenView: Intent i = new Intent("com.fps.say.SQLView"); startActivity(i); break; 我的日志显示没有找到任何活动来处理意图。。 我已经在AndroidManifest.xml上声明了我的类,为什么我仍然得到这个错误 这是我的manifest.xml <?xml version="1.0" e

我的android代码中有一个错误:

    case R.id.bSQLOpenView:
        Intent i = new Intent("com.fps.say.SQLView");
        startActivity(i);
        break;
我的日志显示没有找到任何活动来处理意图。。 我已经在AndroidManifest.xml上声明了我的类,为什么我仍然得到这个错误

这是我的manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.fps.say"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="10" />
    <uses-permission android:name="android.permission.SET_WALLPAPER"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".Splash"
            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="com.fps.say.MENU" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <activity
            android:name=".SayActivity"
            android:label="@string/app_name" >
                <intent-filter>
                <action android:name="com.fps.say.SAYACTIVITY" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <activity
            android:name=".TextPlay"
            android:label="@string/app_name" >
                <intent-filter>
                <action android:name="com.fps.say.TEXTPLAY" />
            </intent-filter>
        </activity>

        <activity
            android:name=".Email"
            android:label="@string/app_name" >
                <intent-filter>
                <action android:name="com.fps.say.EMAIL" />
            </intent-filter>
        </activity>

        <activity
            android:name=".Camera"
            android:label="Camera Application" 
            android:screenOrientation="portrait">
                <intent-filter>
                <action android:name="com.fps.say.CAMERA" />
            </intent-filter>
        </activity>

        <activity
            android:name=".AboutUs"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.Dialog">
                <intent-filter>
                <action android:name="com.fps.say.ABOUTUS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <activity
            android:name=".Prefs"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.PREFS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>        

        <activity
            android:name=".Data"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.DATA" />
            </intent-filter>
        </activity>

         <activity
            android:name=".GFX"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.GFX" />
            </intent-filter>
        </activity>       

         <activity
            android:name=".GFXSurface"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.GFXSURFACE" />
            </intent-filter>
        </activity>          


        <activity
            android:name=".OpenedClass"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.OPENEDCLASS" />
            </intent-filter>
        </activity>

        <activity
            android:name=".SoundStuff"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.SOUNDSTUFF" />
            </intent-filter>
        </activity>        


        <activity
            android:name=".Slider"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.SLIDER" />
            </intent-filter>
        </activity>          

        <activity
            android:name=".Tabs"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.TABS" />
            </intent-filter>
        </activity>             

        <activity
            android:name=".SimpleBrowser"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.SIMPLEBROWSER" />
            </intent-filter>
        </activity>     

        <activity
            android:name=".SharedPrefs"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.SHAREDPREFS" />
            </intent-filter>
        </activity>         

        <activity
            android:name=".InternalData"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.INTERNALDATA" />
            </intent-filter>
        </activity>          

        <activity
            android:name=".ExternalData"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.EXTERNALDATA" />
            </intent-filter>
        </activity>          

        <activity
            android:name=".SQLView"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.SQLVIEW" />
            </intent-filter>
        </activity>         


        <activity
            android:name=".SQLiteExample"
            android:label="@string/app_name">
                <intent-filter>
                <action android:name="com.fps.say.SQLITEEXAMPLE" />
            </intent-filter>
        </activity>           




    </application>

</manifest>

  • Dubble检查类的名称
  • Dubble检查清单文件中应提及的名称
  • 执行干净的构建

    • 运行活动有几种可能的方法。 以下是我使用的方法:

      Intent i = new Intent (this, YourTargetActivity.class);
      startActivity(i);
      
      这与您当前的活动相对应


      使用这样的调用,您可以方便地让IDE自动完成所需的活动名称。

      您介意发布您的AndroidManifest.xml吗?
      Intent i = new Intent(this,SQLVIEW.class);