Hi, my TourList.java is very small:
//imports and package public class TourList extends ListActivity { File dir = Environment.getExternalStorageDirectory(); String[] fileList = dir.list(new FilenameFilter() { public boolean accept(File d, String name) { return name.endsWith(".gpx"); } }); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tourlist); if (fileList.length>0) setListAdapter(new ArrayAdapter<String> (this,android.R.layout.simple_list_item_1,fileList)); else Toast.makeText(getBaseContext(), "Keine Tour vorhanden!", Toast.LENGTH_SHORT).show(); } public void onListItemClick (ListView lv, View v, int pos, long id) { Intent intent = new Intent(TourList.this, NavTrack.class); intent.putExtra("pos", pos); intent.putExtra("fileList", fileList); startActivity(intent); } } Where can there be an error? Or is it a problem, that i work with sdk 1.6 and the handy has sdk 1.5 installed?? But another app works fine on sdk 1.5 handy and 1.6 emulator?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---