Android Open Source - DailySelfie Activity Image Viewer






From Project

Back to project page DailySelfie.

License

The source code is released under:

Apache License

If you think the Android project DailySelfie listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package it.lusio.android.dailyselfie.ui;
//ww w  . j ava 2 s .co  m
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;

import it.lusio.android.dailyselfie.R;


public class ActivityImageViewer extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_image_viewer);

        final ImageView imageView = (ImageView) findViewById(R.id.imageView);
        Uri uri = getIntent().getExtras().getParcelable("URI");

        Picasso
                .with(this)
                .load(uri)
                .fit()
                .centerInside()
                .into(imageView);
    }
}




Java Source Code List

it.lusio.android.dailyselfie.ApplicationDailySelfie.java
it.lusio.android.dailyselfie.ApplicationTest.java
it.lusio.android.dailyselfie.Constants.java
it.lusio.android.dailyselfie.alarm.AlarmReceiver.java
it.lusio.android.dailyselfie.alarm.AlarmSetter.java
it.lusio.android.dailyselfie.ui.ActivityImageViewer.java
it.lusio.android.dailyselfie.ui.ActivityMain.java
it.lusio.android.dailyselfie.ui.AdapterGridView.java
it.lusio.android.dailyselfie.ui.Selfie.java
it.lusio.android.dailyselfie.ui.SquareImageView.java