Back to project page ribbit.
The source code is released under:
MIT License
If you think the Android project ribbit listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.lleshiart.ribbit; /*from w w w . ja va2s.c o m*/ import java.util.Timer; import java.util.TimerTask; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.widget.ImageView; import com.squareup.picasso.Picasso; public class ViewImageActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_view_image); ImageView imageView = (ImageView) findViewById(R.id.imageView); Uri imageUri = getIntent().getData(); Picasso.with(this).load(imageUri.toString()).into(imageView); Timer timer = new Timer(); timer.schedule(new TimerTask() { @Override public void run() { finish(); } }, 10*1000); } }