[android-beginners] Re: ActivityNotFoundException and txt files

2010-07-17 Thread Harald
ok, thank you. I thourth that File Editor was a build in Android text
editor since I have 3 File Manager program installed and they all
open .txt files i the File Editor program.


On 17 Jul., 03:07, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Jul 16, 2010 at 8:26 PM, Harald harald.kron...@gmail.com wrote:
  Is there any way to fix it so that Android know how to open .txt
  files, or can I somehow in my code tell Android to use File Editor to
  open/edit .txt files.

 I do not know what File Editor is. If that is some third party text
 editor, contact the author to see how to integrate your code with
 theirs.

 There is no text editor built into Android.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
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
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: ActivityNotFoundException and txt files

2010-07-16 Thread DanH
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 harald.kron...@gmail.com 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
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: ActivityNotFoundException and txt files

2010-07-16 Thread Harald
Is there any way to fix it so that Android know how to open .txt
files, or can I somehow in my code tell Android to use File Editor to
open/edit .txt files.

-- 
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
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: ActivityNotFoundException and txt files

2010-07-16 Thread Mark Murphy
On Fri, Jul 16, 2010 at 8:26 PM, Harald harald.kron...@gmail.com wrote:
 Is there any way to fix it so that Android know how to open .txt
 files, or can I somehow in my code tell Android to use File Editor to
 open/edit .txt files.

I do not know what File Editor is. If that is some third party text
editor, contact the author to see how to integrate your code with
theirs.

There is no text editor built into Android.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
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
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en