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 de.CardGame.sample; import java.util.Random; import java.util.Stack; import android.content.Context; import android.graphics.Bitmap; import android.view.View; import android.widget.ImageView; public class Deck extends ImageView implements View.OnClickListener { private Stack cards; public Deck(Context context, Bitmap back) { super(context); this.setImageBitmap(back); this.cards = new Stack(); this.setOnClickListener(this); } public void pushCard(Card c) { cards.push(c); } public Card peekCard() { return cards.peek(); } public Card popCard() { return cards.pop(); } public int getDeckSize() { return cards.size(); } public boolean isDeckEmpty() { return cards.isEmpty(); } public void shuffle() { Card tmp; int from,to; Random rnd = new Random(System.currentTimeMillis()); for(int x=0; x <= 1000; x++) { from = rnd.nextInt(cards.size()); to = rnd.nextInt(cards.size()); tmp = cards.get(to); cards.setElementAt(cards.elementAt(from), to); cards.setElementAt(tmp, from); rnd.setSeed(System.currentTimeMillis()/((from*to)+1)); } } public void onClick(View v) { if(!cards.isEmpty()) { Card top = cards.pop(); top.setPosition(100, 100); CardGameSample.layout.addView(top); } } }