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.pepakbahasajawa; import android.app.ListActivity; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.widget.ImageView; import android.widget.ListAdapter; import android.widget.SimpleCursorAdapter; import android.widget.TextView; public class PepakPostView extends ListActivity { protected ListAdapter adapter; protected int subcatId; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.post); subcatId = getIntent().getIntExtra("SUBCATEGORY_ID", 0); SQLiteDatabase db = (new DatabaseHelper(this)).getWritableDatabase(); Cursor cursor = db.rawQuery("SELECT _id, subcatId, postOne, postTwo, picture FROM posts WHERE subcatId = ?", new String[]{""+subcatId}); adapter = new SimpleCursorAdapter( this, R.layout.post, cursor, new String[] {"postOne", "postTwo", "picture"}, new int[] { R.id.postOne, R.id.postTwo, R.id.picture }); ((SimpleCursorAdapter) adapter).setViewBinder(new SimpleCursorAdapter.ViewBinder(){ public boolean setViewValue(View view, Cursor cursor, int columnIndex) { int viewId = view.getId(); switch(viewId) { case R.id.postOne: TextView postOne = (TextView) view; postOne.setText(cursor.getString(cursor.getColumnIndex("postOne"))); break; case R.id.postTwo: TextView postTwo = (TextView) view; postTwo.setText(cursor.getString(cursor.getColumnIndex("postTwo"))); break; case R.id.picture: ImageView pictureIcon = (ImageView) view; int picture = cursor.getInt(columnIndex); switch(picture) { case 1: pictureIcon.setImageResource(R.drawable.icon); break; case 2: pictureIcon.setImageResource(R.drawable.home_normal); break; } break; } return true; } }); setListAdapter(adapter); } @Override public boolean onCreateOptionsMenu(android.view.Menu menu) { // TODO Auto-generated method stub super.onCreateOptionsMenu(menu); MenuInflater blowUp = getMenuInflater(); blowUp.inflate(R.menu.coll_menu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // TODO Auto-generated method stub switch(item.getItemId()){ case R.id.about: Intent i = new Intent("com.pepakbahasajawa.ABOUT"); startActivity(i); break; case R.id.exit: finish(); break; } return false; } }