Roberto P. Well-Known Member Licensed User Longtime User Mar 22, 2016 #1 Hello to all someone can figure out where the problem is the failure to create and open a text file? I attach the project. thank you Attachments error.png 12.7 KB · Views: 316 fileopen.zip fileopen.zip 6.8 KB · Views: 219
Hello to all someone can figure out where the problem is the failure to create and open a text file? I attach the project. thank you
DonManfred Expert Licensed User Longtime User Mar 22, 2016 #2 Roberto P. said: and open a text file? Click to expand... What exactly you want to archieve? To open (and read) a file by your app you don´t need a Intent. Just open and read it. You are trying to open an intent to EDIT the file. But there is no app registered to be the EDITor for .txt files. Upvote 0
Roberto P. said: and open a text file? Click to expand... What exactly you want to archieve? To open (and read) a file by your app you don´t need a Intent. Just open and read it. You are trying to open an intent to EDIT the file. But there is no app registered to be the EDITor for .txt files.
Roberto P. Well-Known Member Licensed User Longtime User Mar 22, 2016 #3 Hi Manfred I want to create a text file and open the default editor to write the user. I have two registered applications that open the text file. Or I expect Android-face view the applications that open the file. Thank you Upvote 0
Hi Manfred I want to create a text file and open the default editor to write the user. I have two registered applications that open the text file. Or I expect Android-face view the applications that open the file. Thank you
M Mahares Expert Licensed User Longtime User Mar 22, 2016 #4 Change this: Code: Dim aPath As String = File.DirInternal to this: Code: Dim aPath As String = File.DirRootExternal or this: Code: Dim aPath As String = File.DirDefaulttExternal I think files in internal can only be opened by their application, but you are trying to open it with an external program. Upvote 0
Change this: Code: Dim aPath As String = File.DirInternal to this: Code: Dim aPath As String = File.DirRootExternal or this: Code: Dim aPath As String = File.DirDefaulttExternal I think files in internal can only be opened by their application, but you are trying to open it with an external program.
Roberto P. Well-Known Member Licensed User Longtime User Mar 22, 2016 #5 I have already tried File.DirRootExternal but it does not work Upvote 0
M Mahares Expert Licensed User Longtime User Mar 22, 2016 #6 I ran your program and used rootexternal and defaultexternal and was able to open it with Notepad and quickoffice installed on the device. Upvote 0
I ran your program and used rootexternal and defaultexternal and was able to open it with Notepad and quickoffice installed on the device.
Roberto P. Well-Known Member Licensed User Longtime User Mar 22, 2016 #7 the same program?! I have tried with two tablets with the same error !? Upvote 0
M Mahares Expert Licensed User Longtime User Mar 22, 2016 #8 The same program you posted except that I added this: Log(File.ReadString(aPath, sFile)) just to see that the file was saved to either rootext. or defaultext. Attachments RobertoP032216.zip RobertoP032216.zip 6.9 KB · Views: 227 Upvote 0
The same program you posted except that I added this: Log(File.ReadString(aPath, sFile)) just to see that the file was saved to either rootext. or defaultext.
Roberto P. Well-Known Member Licensed User Longtime User Mar 22, 2016 #9 I thank you, but I have the same error ... I do not understand!!! Attachments error 2.png 13.4 KB · Views: 304 Upvote 0