how to import .doc files from sd card into application database?
I want to import .doc files from sdcard into my application and also in database of my application but when i am importing file text is开发者_JAVA百科 not displaying correctly. It is showing symbols characters. How to change format from .doc to .txt
.doc is a Microsoft Word document file format which is not a plain text file. Its a binary file. So if you want to show only text, use a plain ASCII (.txt) file. If you want to show text with formatting or images then consider using HTML with WebView.
The .doc is a complex binary format and you will not be able to accomplish that easy. Feel free to read the specification here:
http://msdn.microsoft.com/en-us/library/cc313105(v=office.12).aspx
精彩评论