content: package com.amosyuen.videorecorder.demo;
  
  
  import android.graphics.BitmapFactory;
  import android.os.Bundle;
  import android.support.annotation.CallSuper;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  import android.view.MenuItem;
  import android.widget.ImageView;
  
  /**
   * An example full-screen activity that shows and hides the system UI (i.e. status bar and
   * navigation/system bar) with user interaction.
   */
  public class ThumbnailActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.activity_thumbnail);
  
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
          getSupportActionBar().setDisplayHomeAsUpEnabled(true);
          getSupportActionBar().setDisplayShowHomeEnabled(true);
  
          ImageView mThumbnailView = (ImageView) findViewById(R.id.thumbnail);
          mThumbnailView.setImageBitmap(BitmapFactory.decodeFile(getIntent().getData().getPath()));
      }
  
      @Override
      @CallSuper
      public boolean onOptionsItemSelected(MenuItem item) {
          if (item.getItemId() == android.R.id.home) {
              onBackPressed();
              return true;
          } else {
              return super.onOptionsItemSelected(item);
          }
      }
  }
  