ACTION_CHANGE_LIVE_WALLPAPER

Discussion in 'Help & Support' started by Lukanio, Aug 23, 2014.

  1. Lukanio Keeps coming back

    Member Since:
    Jul 12, 2013
    Message Count:
    13
    Likes Received:
    1
    Trophy Points:
    10
    Code (text):
                    Intent intent = new Intent(
                            WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
                    intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
                            new ComponentName(getPackageName(), SBLiveWallpaper.class));
                    startActivity(intent);
    My bug:
    Description Resource Path Location Type
    The constructor ComponentName(String, Class<SBLiveWallpaper>) is undefined LiveWallpaperSettings.java /Puppy Rose Live Wallpaper/src/com/sbg/lwc line XX Java Problem
  2. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    167
    Trophy Points:
    500
    You should explain what you are trying to accomplish.
  3. Lukanio Keeps coming back

    Member Since:
    Jul 12, 2013
    Message Count:
    13
    Likes Received:
    1
    Trophy Points:
    10
    I try to move directly to Settings / Set Wallpaper

    Maybe u know @Vas how can i optymalize Bitmap functions... bcs when i add parallax Effect with onSensorChanged, my aps got epic lagg - function drawBitmap laggy.
  4. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    167
    Trophy Points:
    500
    To move directly to settings you can set your intent like this
    Code (text):
    Intent i = new Intent(getApplicationContext(), Settings.class);
  5. Lukanio Keeps coming back

    Member Since:
    Jul 12, 2013
    Message Count:
    13
    Likes Received:
    1
    Trophy Points:
    10
    I know, but i got different problem... I read on other forums or on developer.android to add sth like that:

  6. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    167
    Trophy Points:
    500
    So what's the problem

Share This Page