diff options
Diffstat (limited to 'src/com/android/gallery3d/app/SlideshowDream.java')
-rw-r--r-- | src/com/android/gallery3d/app/SlideshowDream.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/SlideshowDream.java b/src/com/android/gallery3d/app/SlideshowDream.java new file mode 100644 index 000000000..9963da688 --- /dev/null +++ b/src/com/android/gallery3d/app/SlideshowDream.java @@ -0,0 +1,22 @@ +package com.android.gallery3d.app; + +import android.content.Intent; +import android.os.Bundle; +import android.support.v13.dreams.BasicDream; + +public class SlideshowDream extends BasicDream { + @Override + public void onCreate(Bundle bndl) { + super.onCreate(bndl); + Intent i = new Intent( + Intent.ACTION_VIEW, + android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI) +// Uri.fromFile(Environment.getExternalStoragePublicDirectory( +// Environment.DIRECTORY_PICTURES))) + .putExtra(Gallery.EXTRA_SLIDESHOW, true) + .putExtra(Gallery.EXTRA_DREAM, true) + .setFlags(getIntent().getFlags()); + startActivity(i); + finish(); + } +} |