Sunday, November 25, 2012

[android-developers] Re: newbie question: Open settings on desktop icon for wallpaper

Apologies for being impatient, I'm pulling my last hair out on this issue.  To my defence I didn't "bump" after 3 hours, it was more like 27 hours (not sure if living in Australia where the time is now 9am on the 26th of Sept has anything to do with the thought that I bumped after 3 hours, anyway, there's no excuse for bumping, my patience got the best of me).

Back to the matter at hand, I'm using the Tutorial (found here http://www.vogella.com/articles/AndroidLiveWallpaper/article.html), as a basis for my wallpaper.  It has two activities, LiveWallpaperSettings extends PreferenceActivity and MainActivity extends Activity.

I have the following activities (after setting up the stock standard wallpaperservice):
<activity android:label="@string/livewallpaper_settings"
  android:name="com.clock.LiveWallpaperSettings"
android:theme="@style/AppTheme"
android:exported="true"
android:icon="@drawable/clockicon">
</activity>

<activity
                        android:name="com.clock.MainActivity"
                        android:screenOrientation="sensor"
                        android:label="@string/app_name"
                        android:theme="@android:style/Theme.Light.WallpaperSettings" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

When I move the filters to the Settings activity, the wallpaper doesn't launch from Settings, it crashes with "Unfortunately Clock Wallpaper has stopped".  
No matter where the intent filter is, when I click on the icon for the wallpaper, it toasts "Application is not installed".  Just note when I say click on the icon I mean the icon in the Apps folder, not the wallpaper itself under Settings.  Clicking the wallpaper under settings works perfectly with the activities defined as above.


On Saturday, November 24, 2012 7:56:08 PM UTC+11, Johan Wasserman wrote:
Hi,
I wrote a live wallpaper and would like to open the settings when clicking on the App icon.  It should still be set from the settings page, but clicking the icon in the Apps page open the Settings for the wallpaper.  This may be a handy shortcut to the live wallpaper settings instead of navigating through Settings -> Display -> Home screen wallpaper -> etc, etc to get there.

Anyone know if it's possible, and what I need to do do make it happen?

Thanks,
J.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate