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 ImageAdapter extends BaseAdapter { /** The parent context */ private Context myContext; private int count; /** Simple Constructor saving the 'parent' context. */ public ImageAdapter(Context c) { this.myContext = c; Log.e("GAL", "constructed"); } /* Use the array-Positions as unique IDs */ public Object getItem(int position) { Log.e("GAL", "in getItem returning Object at position " + position);return position; } public long getItemId(int position) { Log.e("GAL", "in getItem returning long at position " + position);return position; } public View getView(int position, View convertView) { ImageView i = new ImageView(this.myContext); Log.e("GAL", "in getView with 2 args"); try { String jsonUrl = getString(R.string.api_url) + "?action=galleryimages&id=" + GalleryView.this.gallery_id; JSONHandler jsonHandler = new JSONHandler(jsonUrl); JSONArray joe = new JSONArray(jsonHandler.getJson()); count = joe.length(); JSONObject gallery_entry = joe.getJSONObject(position); String img_content_id = gallery_entry.getString("img_content_id"); String dam_url = getResources().getString(R.string.dam_url) + "/access/show/id/" + img_content_id + "/ds/master/width/120"; Log.e("DAM", dam_url); ImageHandler im = new ImageHandler(); i.setImageBitmap(im.getBitmap(dam_url)); i.setScaleType(ImageView.ScaleType.FIT_XY); } catch (Exception e) { Log.e("GAL", "Remote Image Exception", e); } /* Image should be scaled as width/height are set. */ i.setScaleType(ImageView.ScaleType.FIT_CENTER); /* Set the Width/Height of the ImageView. */ i.setLayoutParams(new Gallery.LayoutParams(150, 150)); return i; } /** Returns the size (0.0f to 1.0f) of the views * depending on the 'offset' to the center. */ public float getScale(boolean focused, int offset) { /* Formula: 1 / (2 ^ offset) */ Log.e("GAL", "in getScale"); return Math.max(0, 1.0f / (float)Math.pow(2, Math.abs(offset))); } public int getCount() { // TODO Auto-generated method stub Log.e("GAL", "in getCount returning int"); return count; } public View getView(int arg0, View arg1, ViewGroup arg2) { // TODO Auto-generated method stub Log.e("GAL", "in getView with 3 args"); return getView(arg0, arg1); } }