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)
package com.Foodies; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.ListView; import android.widget.TextView; public class IStarter extends ListActivity { private static class EfficientAdapter extends BaseAdapter{ private LayoutInflater mInflater; private Bitmap mIcon1; private Bitmap mIcon2; private Bitmap mIcon3; private Bitmap mIcon4; private Bitmap mIcon5; private Bitmap mIcon6; private Bitmap mIcon7; private Bitmap mIcon8; private Bitmap mIcon9; private Bitmap mIcon10; private Bitmap mIcon11; private Bitmap mIcon12; public EfficientAdapter(Context context) { // Cache the LayoutInflate to avoid asking for a new one each time. mInflater = LayoutInflater.from(context); // Icons bound to the rows. mIcon1 = BitmapFactory.decodeResource(context.getResources(), R.drawable.starter); mIcon2 = BitmapFactory.decodeResource(context.getResources(), R.drawable.soups); mIcon3 = BitmapFactory.decodeResource(context.getResources(), R.drawable.vegetablr); mIcon4 = BitmapFactory.decodeResource(context.getResources(), R.drawable.dals); mIcon5 = BitmapFactory.decodeResource(context.getResources(), R.drawable.mutton); mIcon6 = BitmapFactory.decodeResource(context.getResources(), R.drawable.rice); mIcon7 = BitmapFactory.decodeResource(context.getResources(), R.drawable.starter); mIcon8 = BitmapFactory.decodeResource(context.getResources(), R.drawable.soups); mIcon9 = BitmapFactory.decodeResource(context.getResources(), R.drawable.vegetablr); mIcon10 = BitmapFactory.decodeResource(context.getResources(), R.drawable.dals); mIcon11 = BitmapFactory.decodeResource(context.getResources(), R.drawable.mutton); mIcon12= BitmapFactory.decodeResource(context.getResources(), R.drawable.rice); } public int getCount() { return DATA.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { convertView = mInflater.inflate(R.layout.indian_recipes, null); holder = new ViewHolder(); holder.text = (TextView) convertView.findViewById(R.id.textview01); holder.icon = (ImageView) convertView.findViewById(R.id.ImageView01); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } holder.text.setText(DATA[position]); //holder.icon.setImageBitmap((position & 1) == 1 ? mIcon1 : mIcon2); switch (position) { case 0: holder.icon.setImageBitmap(mIcon1 ); break; case 1: holder.icon.setImageBitmap(mIcon2 ); break; case 2: holder.icon.setImageBitmap(mIcon3 ); break; case 3: holder.icon.setImageBitmap(mIcon4 ); break; case 4: holder.icon.setImageBitmap(mIcon5 ); break; case 5: holder.icon.setImageBitmap(mIcon6 ); break; case 6: holder.icon.setImageBitmap(mIcon7 ); break; case 7: holder.icon.setImageBitmap(mIcon8 ); break; case 8: holder.icon.setImageBitmap(mIcon9 ); break; case 9: holder.icon.setImageBitmap(mIcon10 ); break; case 10: holder.icon.setImageBitmap(mIcon11 ); break; case 11: holder.icon.setImageBitmap(mIcon12 ); break; } return convertView; } static class ViewHolder { TextView text; ImageView icon; } } private static final String[] DATA ={" Vegetable Samosa", " Cabbage Sabudana Vada"," Khaman Dhokla"," Cabbage Idli", " Amritsari Fish"," Vegetable Pakora"," Chicken Pakora"," Tandori Chicken"," Aloo Keema Tikka"," Gobi Pakora"," Sabudana Vada"," Tangy Paneer Chilli"}; protected void onListItemClick(ListView l, View v, int position, long id) { // TODO Auto-generated method stub super.onListItemClick(l, v, position, id); Intent intent = new Intent(); Bundle bundle = new Bundle(); bundle.putString("country", l.getItemAtPosition(position).toString()); intent.putExtras(bundle); setResult(RESULT_OK, intent); finish(); } /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getListView().setCacheColorHint(1); getListView().setBackgroundResource(R.drawable.ihome); getListView().setPadding(10,85, 0, 0); getListView().getPaddingTop(); TextView th= new TextView(this);[/b]//========================== th.setText("Starter");[/b]//=================== getListView().addHeaderView(th, "", false);//=========================== setListAdapter(new EfficientAdapter(this)); } }