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

Reply via email to