summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/SlideshowDream.java
blob: 9963da688554dec754a153e3d1b029524e422299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();
    }
}