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.brain_scape; import android.app.Activity; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.view.KeyEvent; import android.view.MenuInflater; import android.view.MenuItem; import com.brain_scape.model.CardDAO; import com.brain_scape.model.CategoryDAO; import com.brain_scape.model.DBHelper; import com.brain_scape.model.DeckDAO; import com.brain_scape.model.StudyDAO; import com.brain_scape.model.User; import com.brain_scape.tests.TestRunner; public class Main extends Activity { /*TextView v; private ImageView splash; private static final int STOPSPLASH = 0; //time in milliseconds private static final long SPLASHTIME = 2000; private Handler splashHandler = new Handler() { public void handleMessage(Message msg) { switch (msg.what) { case STOPSPLASH: //remove SplashScreen from view splash.setVisibility(View.GONE); v.setVisibility(View.GONE); //setVisible(false); break; } super.handleMessage(msg); } }; */ // public Utils utils; static int key = 0; private StudyHandler studyHandler; private WelcomeHandler welcomeHanler; private CategoryHandler categoryHandler; private DBHelper db; Context context; public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK){ if(key == 0) finish(); if(key == 1) setContentView(welcomeHanler.getWelcomeView()); if(key == 2) setContentView(studyHandler.getMyBrainscapeView()); if(key == 3){ setContentView(studyHandler.getDeckList()); } } return true; } public Main() { super(); } public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); context = this; /* splash = (ImageView) findViewById(R.id.s); v = (TextView) findViewById(R.id.SplashText); Message msg = new Message(); msg.what = STOPSPLASH; splashHandler.sendMessageDelayed(msg, SPLASHTIME); */ key = 0; db = new DBHelper(this); db.initializeDB(); // db.test(); studyHandler = new StudyHandler(this); categoryHandler = new CategoryHandler(this); welcomeHanler = new WelcomeHandler(this); // questionHandler = new MyQuestionHandler(this); //answerHandler = new AnswerHandler(this); initHandlers(studyHandler, categoryHandler, welcomeHanler ); // test(); showWelcome(); } public void showWelcome() { setContentView(welcomeHanler.getWelcomeView()); } public void showStudy() { setContentView(studyHandler.getStudyView()); } public void showMarket() { setContentView(categoryHandler.getMarketView()); } public void showMyBrainscape() { setContentView(studyHandler.getMyBrainscapeView()); } /* public void showQuestion() { setContentView(questionHandler.getQuestions()); }*/ public void showLogin() { } public void showAccount() { } /* public void showAnswer(String answer) { setContentView(answerHandler.getAnswer(answer)); }*/ /* * public void showNextScreen() { Intent i = new Intent(); * i.setClass(context, Phrase.class); startActivity(i); * * } * * public void showNextStudyScreen() { * * // setContentView(studyHandler.getStudyView()); * * try { Intent i = new Intent(); i.setClass(context, Phrase.class); * startActivity(i); } catch (Exception e) { new * AlertDialog.Builder(context).setTitle("Error").setMessage( * e.getMessage()).setPositiveButton( "Error: " + e.getMessage(), * null).show(); } * * } */ public void logout() { } public boolean onCreateOptionsMenu(android.view.Menu menu) { super.onCreateOptionsMenu(menu); //MenuItem item = menu.add("Painting"); //menu.add(item); // menu.add(0, R.menu.options_menu, 0, "New Game"); //menu.add(0, MENU_QUIT, 0, "Quit") //menu.add(0, R.id.account_menu, 0, "New Game"); // menu.add(0, MENU_QUIT, 0, "Quit"); //return true; MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.options_menu, menu); return true; }; public boolean onOptionsItemSelected(MenuItem item) { final int id = item.getItemId(); switch (id) { case R.id.my_brainscape: showMyBrainscape(); return true; case R.id.study: showStudy(); return true; case R.id.market: showMarket(); return true; case R.id.account: showAccount(); return true; case R.id.quit: test(); return true; } return false; } public SQLiteDatabase getDB() { return db.getWritableDatabase(); } @Override protected void onSaveInstanceState(Bundle outState) { if (db != null) { db.close(); } } private void initHandlers(BrainscapeHandler... handlers) { for (BrainscapeHandler h : handlers) { h.setCatDAO(CategoryDAO.getInstace(getDB())); h.setDeckDAO(DeckDAO.getInstace(getDB())); h.setCardDAO(CardDAO.getInstace(getDB())); h.setStudyDAO(StudyDAO.getInstace(getDB())); } } public User getUser() { return User.getSampleUser(); } private void test() { TestRunner runner = new TestRunner(); runner.runTests(); } }