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.app.AlertDialog; import android.content.DialogInterface; import android.media.MediaPlayer; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; public class slidebuah extends Activity implements OnClickListener { private DBhelper DbHelper; private int temp =1; private String myMessage, title; MediaPlayer MPX ; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tampilanslide); ImageView tampilgambarbuah = (ImageView)this.findViewById(R.id.gambar); TextView textindobuah = (TextView) this.findViewById(R.id.textindo); TextView textenglishbuah = (TextView) this.findViewById(R.id.textenglish); Button kemenu = (Button) this.findViewById(R.id.tombolkemenu); kemenu.setOnClickListener(this); Button next = (Button) this.findViewById(R.id.tombolnext); next.setOnClickListener(this); Button back = (Button) this.findViewById(R.id.tombolback); back.setOnClickListener(this); DbHelper = new DBhelper(this); DbHelper.open(); int rowId = 1; Object testFruit = DbHelper.getFirstFruitFromDB(rowId); DbHelper.close(); tampilgambarbuah.setImageResource(testFruit.getBitmap()); textindobuah.setText(testFruit.getName()); textenglishbuah.setText(testFruit.getEnglish()); } public void output(Object nextFruits){ ImageView tampilgambarbuah = (ImageView)this.findViewById(R.id.gambar); TextView textindobuah = (TextView) this.findViewById(R.id.textindo); TextView textenglishbuah = (TextView) this.findViewById(R.id.textenglish); tampilgambarbuah.setImageResource(nextFruits.getBitmap()); textindobuah.setText(nextFruits.getName()); textenglishbuah.setText(nextFruits.getEnglish()); } public void onClick(View v) { switch (v.getId()) { case R.id.tombolkemenu: bunyiclick(); slidebuah.this.finish(); break; case R.id.tombolnext: bunyiclick(); DbHelper.open(); Object nextFruits = DbHelper.getFirstFruitFromDB(temp + 1); DbHelper.close(); if(nextFruits!= null){ output(nextFruits); temp = temp+1; } else{ title= "Pemberitahuan"; myMessage = "Maaf, ini adalah objek buah yang terakhir."; alertbox(title,myMessage);; } break; case R.id.tombolback: bunyiclick(); DbHelper.open(); Object backFruits = DbHelper.getFirstFruitFromDB(temp - 1); DbHelper.close(); if(backFruits!= null){ output(backFruits); temp = temp -1; } else{ bunyierror(); title= "Pemberitahuan"; myMessage = "Maaf, ini adalah objek buah yang pertama."; alertbox(title,myMessage);} break; } } protected void alertbox(String title, String mymessage) { new AlertDialog.Builder(this) .setMessage(mymessage) .setTitle(title) .setCancelable(true) .setNeutralButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton){} }) .show(); } public void bunyiclick(){MediaPlayer mp = MediaPlayer.create(slidebuah.this, R.raw.a); mp.start();} public void bunyierror(){MediaPlayer mp = MediaPlayer.create(slidebuah.this, R.raw.error); mp.start();} }