Android Open Source - paperbandit Open Activity






From Project

Back to project page paperbandit.

License

The source code is released under:

MIT License

If you think the Android project paperbandit 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 za.co.appceptional.android.paperbandit;
/*from  w  ww  .j  a v  a  2  s.  c om*/
import android.content.Intent;
import android.os.Bundle;
import android.app.Activity;
import android.app.WallpaperManager;

public class OpenActivity extends Activity {
   private int REQUEST_CODE = 1;
   
   @Override
   public void onCreate(Bundle icicle)
   {
    super.onCreate(icicle);
    
    Intent intent = new Intent ();
    intent.setAction(WallpaperManager.ACTION_LIVE_WALLPAPER_CHOOSER);
          startActivityForResult(intent, REQUEST_CODE);
      }

      @Override
      protected void onActivityResult(int requestCode, int resultCode, Intent intent)
      {
       super.onActivityResult(requestCode, resultCode, intent);
       if (requestCode == REQUEST_CODE)
        finish();
      }
}




Java Source Code List

za.co.appceptional.android.paperbandit.CroppedImage.java
za.co.appceptional.android.paperbandit.OpenActivity.java
za.co.appceptional.android.paperbandit.PaperBanditSettings.java
za.co.appceptional.android.paperbandit.PaperBandit.java
za.co.appceptional.android.paperbandit.ScrollingImageSet.java
za.co.appceptional.android.paperbandit.WinCalculator.java