Back to project page custom-touch-examples.
The source code is released under:
Copyright (c) 2012 Wireless Designs, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in ...
If you think the Android project custom-touch-examples 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.examples.customtouch; /*from www . j a v a 2 s. com*/ import android.app.Activity; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import com.examples.customtouch.widget.RotateZoomImageView; import java.io.IOException; import java.io.InputStream; /** * Created by Dave Smith * Double Encore, Inc. * Date: 9/24/12 * MultitouchActivity */ public class MultitouchActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); RotateZoomImageView iv = new RotateZoomImageView(this); Bitmap image; try { InputStream in = getAssets().open("android.jpg"); image = BitmapFactory.decodeStream(in); in.close(); } catch (IOException e) { image = null; } iv.setImageBitmap(image); setContentView(iv); } }