I want to read MS Word file in Android and get the content text, but after reading I got wrong characters. I tried to use Apache poi library, but app can`t compile because of the fact that the Apache Poi Library has more than 67k methods. Need help.
Asked
Active
Viewed 154 times
-1
-
1The app can compile if you read the error message pointing you here. https://developer.android.com/studio/build/multidex.html#about – OneCricketeer Nov 19 '16 at 13:25
-
refer this, http://stackoverflow.com/questions/19422075/open-a-selected-file-image-pdf-programmatically-from-my-android-applicat – Vijay Nov 19 '16 at 13:27
-
@Vijay That question is for PDF files, not MS Word – OneCricketeer Nov 19 '16 at 13:32
1 Answers
0
Simplest way IMHO is to port Apache POI library to Android. It's possible and there proof of that
Porting POI you can embed Word editing feature into your application.
Piece of code like:
Intent intent = new Intent(Intent.ACTION_EDIT);
Uri uri = Uri.parse("file:///"+file.getAbsolutePath());
intent.setDataAndType(uri, "plain/text");
startActivity(intent);

naveed abbas
- 63
- 7