Java 当我单击live wallpaper中的设置选项时,应用程序正在崩溃

Java 当我单击live wallpaper中的设置选项时,应用程序正在崩溃,java,android,live-wallpaper,Java,Android,Live Wallpaper,logcat中没有发布任何内容。应用程序只是停止工作。 这是我的代码表单清单 <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <service android:name =".LiveWallpaperAndroid" android:label = "@string/app_name" android:icon

logcat中没有发布任何内容。应用程序只是停止工作。 这是我的代码表单清单

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <service android:name =".LiveWallpaperAndroid"
     android:label = "@string/app_name"
     android:icon = "@drawable/ic_launcher"
     android:permission = "android.permission.BIND_WALLPAPER" >
    <intent-filter>
            <action android:name="android.service.wallpaper.WallpaperService" />
    </intent-filter>
    <meta-data android:name ="android.service.wallpaper"
         android:resource ="@xml/livewallpaper" />
    </service>

    <activity android:label="@string/livewallpaper_settings"
        android:name=".LiveWallpaperSettings"
        android:theme="@android:style/Theme.Light.WallpaperSettings"
        android:exported="true"
        android:icon = "@drawable/ic_launcher">
    </activity>
</application>
我的设置xml文件是

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/livewallpaper_settings"
android:key="livewallpaper_settings">

<ListPreference
    android:key="livewallpaper_testpattern"
    android:title="@string/livewallpaper_settings_title"
    android:summary="@string/livewallpaper_settings_summary"
    android:entries="@array/livewallpaper_testpattern_names"
    android:entryValues="@array/livewallpaper_testpattern_prefix"/>
<CheckBoxPreference android:key="livewallpaper_movement"
    android:summary="@string/livewallpaper_movement_summary"
    android:title="@string/livewallpaper_movement_title"
    android:summaryOn="Moving test pattern"
    android:summaryOff="Still test pattern"/>
</PreferenceScreen>


这里出了什么问题。我想不出什么,因为logcat中没有显示任何错误。

我也有过很多次这样的情况,我很清楚这个问题和解决方案,我想你只是忘记了更改xml文件夹wallpar.xml文件中的包名,请检查下面的答案

我想你应该知道wallpar.xml//无论你拿什么,你都能理解你的文件名

   <?xml version="1.0" encoding="utf-8"?>
   <wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
   android:settingsActivity="YourAllPAckageName.YourSettingActivity"
   android:thumbnail="@drawable/ic_launcher" />


你能发布你的全部代码吗。。。。。
   <?xml version="1.0" encoding="utf-8"?>
   <wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
   android:settingsActivity="YourAllPAckageName.YourSettingActivity"
   android:thumbnail="@drawable/ic_launcher" />
  <?xml version="1.0" encoding="utf-8"?>
   <wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
   android:settingsActivity="com.wallpaperexample.WallpaperSettingsActiity"
   android:thumbnail="@drawable/ic_launcher" />