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 net.mobilefight.trackbuilder; import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import android.app.AlertDialog; import android.app.ListActivity; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; public class LoadPath extends ListActivity { public static final int RESULT_EMPTY = 2; private List directoryEntries = new ArrayList(); @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); try { browseTo(getFileStreamPath("")); } catch (FileNotFoundException e) { LoadPath.this.setResult(RESULT_EMPTY); LoadPath.this.finish(); } } private void browseTo(final File aDirectory){ if (aDirectory.isDirectory()){ fill(aDirectory.listFiles()); }else{ OnClickListener okButtonListener = new OnClickListener(){ // @Override public void onClick(DialogInterface arg0, int arg1) { LoadPath.this.setResult(RESULT_OK, aDirectory.getName()); LoadPath.this.finish(); } }; OnClickListener cancelButtonListener = new OnClickListener(){ // @Override public void onClick(DialogInterface arg0, int arg1) { // Do nothing ^^ } }; AlertDialog.show(this,"Question", "Do you want to load: " + aDirectory.getName() + "?", "OK", okButtonListener, "Cancel", cancelButtonListener, false, null); } } private void fill(File[] files) { directoryEntries.clear(); boolean empty = true; for (File file : files){ String filename = file.getName(); if (filename.endsWith("_path")) { directoryEntries.add(filename); empty = false; } } ArrayAdapter directoryList = new ArrayAdapter(this, R.layout.file_row, this.directoryEntries); this.setListAdapter(directoryList); if (empty) { LoadPath.this.setResult(RESULT_EMPTY); LoadPath.this.finish(); } } @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); int selectionRowID = (int) this.getSelectionRowID(); File clickedFile = null; clickedFile = new File(this.directoryEntries.get(selectionRowID)); if(clickedFile != null) this.browseTo(clickedFile); } }