http://developer.android.com/reference/android/content/ActivityNotFoundException.html :
"This exception is thrown when a call to startActivity(Intent) or one of its variants fails because an Activity can not be found to execute the given Intent." On Jul 16, 6:27 pm, Harald <[email protected]> wrote: > I am trying to open at .txt file in the standard file editor, I tryed > this code but all I get is an ActivityNotFoundException > > File root = Environment.getExternalStorageDirectory(); > File f = new File(root, "/Android/data/HKKalender/ > stdtekster.txt"); > > try { > Intent intent = new Intent(Intent.ACTION_EDIT); > intent.setDataAndType(Uri.fromFile(f), "text/plain"); > startActivity(intent); > } catch (Exception e) { } -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

