Back to project page BlobDroidLiveWallpaper.
The source code is released under:
GNU General Public License
If you think the Android project BlobDroidLiveWallpaper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.neon.coydog.blobdroid; /*from www . j a v a 2 s. c om*/ import android.app.Activity; import android.app.WallpaperManager; import android.content.ComponentName; import android.content.Intent; import android.os.Bundle; import android.view.View; //import android.content.ActivityNotFoundException; import android.os.Build; public class SetWallpaperActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } public void onClick(View view) { ComponentName intentComponent = new ComponentName(this, BlobDroidService.class); Intent intent = new Intent(); if(Build.VERSION.SDK_INT >= 16) { intent.setAction(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER); intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT, intentComponent); } else { intent.setAction(WallpaperManager.ACTION_LIVE_WALLPAPER_CHOOSER); } startActivity(intent); } }