Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7172765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:41:03+00:00 2026-05-28T15:41:03+00:00

I do wallpaper to android and have problem. When I click settings button I

  • 0

I do wallpaper to android and have problem. When I click settings button I see:

01-22 11:50:47.579: E/AndroidRuntime(18421): FATAL EXCEPTION: main
01-22 11:50:47.579: E/AndroidRuntime(18421): java.lang.IllegalStateException: Could not execute method of the activity
01-22 11:50:47.579: E/AndroidRuntime(18421):    at android.view.View$1.onClick(View.java:2154)
01-22 11:50:47.579: E/AndroidRuntime(18421):    at android.view.View.performClick(View.java:2538)
...

My code:
LiveWallpaperSettings.java:

package com.samples;

import android.os.Bundle;
import android.preference.PreferenceActivity;

public class LiveWallpaperSettings extends PreferenceActivity
{
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.wallpaper_settings);
    }
}

wallpaper_settings.xml:

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
        android:title="@string/wallpaper_label">
        <PreferenceCategory android:title="General">
                <CheckBoxPreference
                        android:title="Pref01 title"
                        android:summary="Pref01 summary"
                        android:key="pref01" 
                        android:defaultValue="true"
                />
        </PreferenceCategory>
</PreferenceScreen>

wallpaper.xml:

<?xml version="1.0" encoding="UTF-8"?>
<wallpaper
        xmlns:android="http://schemas.android.com/apk/res/android"  
        android:thumbnail="@drawable/icon"
        android:description="@string/wallpaper_description"
        android:settingsActivity="com.sample.LiveWallpaperSettings"/>

Manifest:

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

    <uses-sdk android:minSdkVersion="7" />
    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" 
        android:permission="android.permission.BIND_WALLPAPER">
        <service 
            android:name=".LiveWallpaperService"
            ...

            <intent-filter>
                ...
            </intent-filter>
            <meta-data 
              android:name="android.service.wallpaper" 
              android:resource="@xml/wallpaper" />
        </service>

        <activity 
            android:label="@string/wallpaper_label"
            android:name=".LiveWallpaperSettings"
            android:theme="@android:style/Theme.Light.WallpaperSettings"
            android:exported="true"
            android:icon="@drawable/icon">
        </activity>
    </application>
</manifest>

LiveWallpaperService dont use any Preference.
What I forgot to write?
Help please!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:41:05+00:00Added an answer on May 28, 2026 at 3:41 pm

    Package name is wrong on wallpaper.xml:

    android:settingsActivity="com.sampleS.LiveWallpaperSettings"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the Android Live Wallpaper. .LiveWallpaperSettings is main activity with settings preferences. <-
I have an Android application with version 1.6 I take the wallpaper and show
I have been developing Android apps, but never did a live wallpaper. I have
I have noticed that some Android applications adds a new Wallpaper-gallery to the Wallpaper-chooser.
I have uploaded a new Live Wallpaper up onto the Android Market about a
I'm working on an Android live wallpaper. I have everything working just fine so
So I am modifying the Cube live wallpaper example. I have a class that
I'm currently writing a live wallpaper for Android and it has a PreferenceScreen which
We are trying to develop a live wallpaper for Android phones, but when it
I have to implement an app which temporary changes the wallpaper. After some time

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.