Home | History | Annotate | Download | only in app
      1 package com.android.gallery3d.app;
      2 
      3 import android.app.Activity;
      4 import android.content.Intent;
      5 import android.support.v13.dreams.BasicDream;
      6 import android.graphics.Canvas;
      7 import android.net.Uri;
      8 import android.os.Bundle;
      9 import android.os.Environment;
     10 import android.view.View;
     11 import android.widget.ImageView;
     12 import android.widget.ViewFlipper;
     13 
     14 public class SlideshowDream extends BasicDream {
     15     @Override
     16     public void onCreate(Bundle bndl) {
     17         super.onCreate(bndl);
     18         Intent i = new Intent(
     19             Intent.ACTION_VIEW,
     20             android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI)
     21 //            Uri.fromFile(Environment.getExternalStoragePublicDirectory(
     22 //                        Environment.DIRECTORY_PICTURES)))
     23                 .putExtra(Gallery.EXTRA_SLIDESHOW, true)
     24                 .setFlags(getIntent().getFlags());
     25         startActivity(i);
     26         finish();
     27     }
     28 }
     29