Android Open Source - TIMLiveWallpaper Main Activity






From Project

Back to project page TIMLiveWallpaper.

License

The source code is released under:

GNU General Public License

If you think the Android project TIMLiveWallpaper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.mandeepshergill.illusivesunlivewallpaper;
//w  w  w  .j ava 2  s  .c  om
import android.os.Bundle;
import android.app.Activity;
import android.app.WallpaperManager;
import android.content.ComponentName;
import android.content.Intent;
import android.view.View;

public class MainActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
  }
  
  public void onClick(View view) {
    Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
    intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT, new ComponentName(this, IllusiveWallpaperService.class));
    startActivity(intent);
  }

}




Java Source Code List

com.mandeepshergill.illusivesunlivewallpaper.IllusiveWallpaperService.java
com.mandeepshergill.illusivesunlivewallpaper.MainActivity.java
com.mandeepshergill.illusivesunlivewallpaper.MyPoint.java