Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class Filter extends Activity implements OnItemClickListener { static Bitmap filterBitmap = null; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.filter); GridView g = (GridView) findViewById(R.id.filter); g.setAdapter(new ImageAdapter(this)); g.setOnItemClickListener(this); } public View makeView() { ImageView i = new ImageView(this); i.setBackgroundColor(0xFF000000); i.setScaleType(ImageView.ScaleType.FIT_CENTER); i.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); return i; } public class ImageAdapter extends BaseAdapter { private Integer[] mThumbIds = { R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, R.drawable.sample_thumb_2, R.drawable.sample_thumb_3, R.drawable.sample_thumb_4, R.drawable.sample_thumb_5, R.drawable.sample_thumb_6, R.drawable.sample_thumb_7, R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, R.drawable.sample_thumb_2, R.drawable.sample_thumb_3, R.drawable.sample_thumb_4, R.drawable.sample_thumb_5, R.drawable.sample_thumb_6, R.drawable.sample_thumb_7, R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, R.drawable.sample_thumb_2, R.drawable.sample_thumb_3, R.drawable.sample_thumb_4, R.drawable.sample_thumb_5, R.drawable.sample_thumb_6, R.drawable.sample_thumb_7, R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, R.drawable.sample_thumb_2, R.drawable.sample_thumb_3, R.drawable.sample_thumb_4, R.drawable.sample_thumb_5, R.drawable.sample_thumb_6, R.drawable.sample_thumb_7, R.drawable.sample_thumb_0, R.drawable.sample_thumb_1, R.drawable.sample_thumb_2, R.drawable.sample_thumb_3, R.drawable.sample_thumb_4, R.drawable.sample_thumb_5, R.drawable.sample_thumb_6, R.drawable.sample_thumb_7 }; public ImageAdapter(Context c) { mContext = c; } public int getCount() { return mThumbIds.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { ImageView i = new ImageView(mContext); i.setImageResource(mThumbIds[position]); i.setLayoutParams(new Gallery.LayoutParams(60, 60)); i.setAdjustViewBounds(false); i.setScaleType(ImageView.ScaleType.CENTER_CROP); i.setPadding(8, 8, 8, 8); return i; } private Context mContext; } @Override public void onItemClick(AdapterView arg0, View arg1, int arg2, long arg3) { final ProgressDialog p = new ProgressDialog(Filter.this); p.setTitle("Apply"); p.setMessage("Please wait while applying the filter..."); p.setIndeterminate(true); /* * ProgressDialog.show(Filter.this, "Apply" , "Please wait while applying * the filter...", true); */ p.show(); new Thread() { public void run() { try { // Intent i = new Intent(Filter.this, Rotate.class); // startActivity(i); String path = getIntent().getStringExtra("picture"); Bitmap bmp = BitmapFactory.decodeFile(path); // Bitmap bmp2 = bmp.copy(new android.graphics.Bitmap.Config(), true); for (int i = 0; i < 200; i++) for (int j = 0; j < 200; j++) bmp.setPixel(i, j, 0); // Raise an exception filterBitmap = bmp; // // create a matrix for the manipulation // Matrix matrix = new Matrix(); // // resize the bit map // matrix.postScale(bmp.getWidth(), bmp.getHeight()); // // rotate the Bitmap // matrix.postRotate(45); // // // recreate the new Bitmap // Bitmap resizedBitmap = Bitmap.createBitmap(bmp, 0, 0, // bmp.getWidth(), bmp.getHeight(), // matrix, true); // bmp = resizedBitmap; // sleep(5000); } catch (Exception e) { } // Dismiss the Dialog p.dismiss(); Filter.this.finish(); } }.start(); } }