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)
import android.app.Activity; import android.database.Cursor; import android.net.Uri; import android.widget.BaseAdapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.GridView; import android.widget.ImageView; import android.widget.Toast; public class ImageAdapter extends BaseAdapter { private Context mContext; public ImageAdapter(Context c) { mContext = c; } public int getCount() { return cursor.getCount(); } public Object getItem(int position) { return null; } public long getItemId(int position) { return 0; } //Get Dataset from Database Uri uri = com.example.ImageProvider.CONTENT_URI; String[] projection = new String[] { Constants.KEY_ID, Constants.KEY_IMG }; String selection = null; String[] selectionArgs = null; String sortOrder = Constants.KEY_ID + " ASC"; Activity activity = new Activity(); Cursor cursor = activity.managedQuery(uri, projection, // Which columns to return selection, // WHERE clause; which rows to return(all rows) selectionArgs, // WHERE clause selection arguments (none) sortOrder // Order-by clause (ascending by name) ); //Cursor cursor = activity.getContentResolver().query(uri,projection, selection, selectionArgs, sortOrder); Integer[] mThumbIds = CreateIntegerArray(mContext, cursor); // create a new ImageView for each item referenced by the Adapter public View getView(final int position, View convertView, ViewGroup parent) { ImageView imageview; if (convertView == null) { // if it's not recycled, initialize some attributes imageview = new ImageView(mContext); imageview.setLayoutParams(new GridView.LayoutParams(30, 30)); imageview.setScaleType(ImageView.ScaleType.CENTER_CROP); imageview.setPadding(0, 0, 0, 0); //cursor.moveToPosition(position); imageview.setOnClickListener(new View.OnClickListener() { // @Override public void onClick(View view){ Toast t; t = Toast.makeText(mContext, "Image " + position + " selected", Toast.LENGTH_SHORT); t.show(); } }); } else { imageview = (ImageView) convertView; } imageview.setImageResource(mThumbIds[position]); return imageview; }