blob: f4abe86aba39facd08a6e1cd320e3d4cfc94b6ad [file] [log] [blame]
package com.android.gallery3d.app;
import android.app.Activity;
import android.content.Intent;
import android.support.v13.dreams.BasicDream;
import android.graphics.Canvas;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
import android.widget.ImageView;
import android.widget.ViewFlipper;
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)
.setFlags(getIntent().getFlags());
startActivity(i);
finish();
}
}