Back to project page GestureViews.
The source code is released under:
Apache License
If you think the Android project GestureViews 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.alexvasilkov.gestures.sample.activities; // ww w.j a va 2 s. co m import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.os.Bundle; import com.alexvasilkov.gestures.widgets.GestureImageView; public class ImageSnapshotActivity extends BaseActivity { private static Bitmap sBitmapToShow; public static void show(Context context, Bitmap bitmap) { sBitmapToShow = bitmap; context.startActivity(new Intent(context, ImageSnapshotActivity.class)); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); GestureImageView gImageView = new GestureImageView(this); setContentView(gImageView); gImageView.setImageBitmap(sBitmapToShow); } @Override protected void onDestroy() { super.onDestroy(); if (isFinishing()) sBitmapToShow = null; } }