当前位置: 代码迷 >> Android >> AndroidManifest.xml 已登记activity 还是出现ActivityNotFoundException
  详细解决方案

AndroidManifest.xml 已登记activity 还是出现ActivityNotFoundException

热度:102   发布时间:2016-05-01 17:48:31.0
AndroidManifest.xml 已注册activity 还是出现ActivityNotFoundException
AndroidManifest.xml
--------------------
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.tengrui"
android:versionCode="1"
android:versionName="1.0">

<uses-sdk android:minSdkVersion="12" />

<application android:icon="@drawable/ftgm" android:label="@string/app_name" android:theme="@android:style/Theme.WithActionBar">


<activity android:name=".activity.LoginActivity"
android:icon="@drawable/ftgm"
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=".activity.ListViewActivity"
android:icon="@drawable/ftgm"
android:label="@string/app_name"
android:screenOrientation="landscape">
</activity>

<activity android:name=".activity.FukudaCemeteryActivity"
android:label="@string/app_name"
android:screenOrientation="landscape">
</activity>

<activity android:name=".activity.ImagesActivitys"
android:icon="@drawable/ftgm"
android:label="@string/app_name_mxll">

</activity>

<activity android:name=".activity.ImageViewActivity"
android:icon="@drawable/ftgm"
android:label="@string/app_name_mxll_xx">
</activity>

<activity android:name=".activity.WebViewActivity"
android:icon="@drawable/ftgm"
android:label="@string/app_name_zxxm">
</activity>

</application>


<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.WAKE_LOCK"></uses-permission>
</manifest>


跳转Intent 


-----
Intent in= new Intent(ListViewActivity.this,
ImagesActivity.class);
Bundle data = new Bundle();  
data.putInt("type",1);
in.putExtras(data);

------解决方案--------------------
<activity android:name=".activity.ImagesActivitys"
android:icon="@drawable/ftgm"
android:label="@string/app_name_mxll">


多了个S
------解决方案--------------------
[img=http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/0.gif][/img]
楼主SSSSSSSSSSSSSSSSSSSS
  相关解决方案