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.google.zxing.client.android; import android.app.Activity; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.os.CountDownTimer; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; public class Main extends Activity { int test123 = 0; Button btnView; Button btnScan; Button Stop; TextView timeDisplay; String test1="15Min"; String test2="30Min"; String test3="60Min"; int state = 0; int length = 10000;//100s long startTime = 0; long currentTime = 0; long timeElapsed = 0; long timeRemaining = 0; long prevTimeRemaining = 0; MyCount counter; String name2 = ""; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); btnView = (Button) findViewById(R.id.btnView); btnScan = (Button) findViewById(R.id.btnScan); Stop = (Button) findViewById(R.id.Stop); timeDisplay = (TextView) findViewById(R.id.timer); name2=Test.test; counter = new MyCount(length, 100); if(name2.equals(test1)) { length =5000; counter = new MyCount(length, 100); startTime = System.currentTimeMillis(); counter.start(); } if(name2.equals(test2)) { length = 1800000; counter = new MyCount(length, 100); startTime = System.currentTimeMillis(); counter.start(); } if(name2.equals(test3)) { length = 3600000 ; counter = new MyCount(length, 100); startTime = System.currentTimeMillis(); counter.start(); } btnScan.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent myIntent = new Intent(((View) v).getContext(),CaptureActivity.class); startActivityForResult(myIntent, 1); } }); btnView.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent myIntent = new Intent(((View) v).getContext(),view.class); startActivityForResult(myIntent, 1); } }); Stop.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { counter.cancel(); timeDisplay.setText(""); } }); } public class MyCount extends CountDownTimer { public MyCount(long millisInFuture, long countDownInterval) { super(millisInFuture, countDownInterval); } public void onFinish() { timeDisplay.setText("Your Coupon Time is up!"); MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.sound); mp.start(); Toast.makeText(Main.this, "Your Coupon Time is up", Toast.LENGTH_SHORT).show(); } public void onTick(long millisUntilFinished) { //formatTime(length); timeDisplay.setText("Left: " + formatTime(millisUntilFinished)); } } public String formatTime(long millis) { String output = "00:00:00"; long seconds = millis / 1000; long minutes = seconds / 60; long hours = minutes / 60; seconds = seconds % 60; minutes = minutes % 60; hours = hours % 60; String secondsD = String.valueOf(seconds); String minutesD = String.valueOf(minutes); String hoursD = String.valueOf(hours); if (seconds < 10) secondsD = "0" + seconds; if (minutes < 10) minutesD = "0" + minutes; if (hours < 10) hoursD = "0" + hours; output = hoursD + " : " + minutesD + " : " + secondsD; return output; } }