Android Open Source - libgdx-lwp-template Template Daydream






From Project

Back to project page libgdx-lwp-template.

License

The source code is released under:

Copyright (c) 2013, madpew All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redis...

If you think the Android project libgdx-lwp-template 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 org.example.lwp.template;
//from   ww w . j  a va 2  s .  c om
import android.annotation.TargetApi;
 
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.badlogic.gdx.backends.android.AndroidDaydream;

 
@TargetApi(17)
public class TemplateDaydream extends AndroidDaydream {
  
   @Override
   public void onAttachedToWindow() {
      super.onAttachedToWindow();      
      setInteractive(false);
      setFullscreen(true);
 
      AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
      cfg.useGL20 = false;
      
      initialize(new TemplateMain(), cfg);
   }
   
   @Override
   public void onDreamingStarted(){
     super.onDreamingStarted();
   }
   
   @Override
   public void onDreamingStopped(){
     super.onDreamingStopped();
   }
   
}




Java Source Code List

org.example.lwp.template.LandscapeLauncher.java
org.example.lwp.template.MainScreen.java
org.example.lwp.template.PortraitLauncher.java
org.example.lwp.template.TemplateDaydream.java
org.example.lwp.template.TemplateLWPSettings.java
org.example.lwp.template.TemplateLiveWallpaper.java
org.example.lwp.template.TemplateMain.java