I want to evaluate if Aspose fits our need. So I did
1- Download the Aspose.Words for Android Examples (DocumentViewer)
2- Download aspose-words-1.9.0-android.zip
3- Then I’ve copied the Aspose.Words.1.9.0.jdk16.jar in the example libs folder:DocumentViewer/libs/
4- Open the documentviewer project in eclipse (with adt) using :
File/Import/Android/Existing Android Code Into Workspace.
5- Add the following snippet at line 136 in AsposeWordsViewerActivity.java to fix a compilation error
License lic = new License();
InputStream stream = new FileInputStream(gLicenseFile.getAbsolutePath());
7- Import java.io.FileInputStream and java.io.InputStream
8-Try to run on my device (Galaxy Note 10.1 / kitkat)
At this point, I compile but get memory error when I try to execute. I did change the eclipse.ini to increase the heap size with no success.
I sometime get the error above or just eclipse which freezes.
Thanks for your inquiry. Could you please comment the code (mentioned in point 5, setting the license file) and test your scenario again?
Please also share following detail for investigation purposes.
1) Share the Android Virtual Device detail (see the attached image)
2) Please share your license file which you are using. In order to post your license
file to us please follow the instructions provided in the following
3) Please share your eclipse.ini file.
Thanks for your inquiry. We
have found an issue with DocumentViewer example and have fixed it.
Please use the attached code example of DocumentViewer. We will update
this code example at Github. Please let us know if you still face any issue.