I have a very simple question: How to create .docx and .xlsx files on Android. Before someone marks this as duplicate, let me tell you that
You can use docx4j to create .docx files.
docx4j is an open source (Apache v2) library for creating, editing, and saving OpenXML "packages", including docx, pptx, and xslx.
So you need to use JAXB-based Java library for Word docx.
This is a helpful tutorial for that: http://www.javacodegeeks.com/2012/07/java-word-docx-documents-with-docx4j.html
Then your next question "is that compatible with the android ? " Look at this: JAXB can be made to run on Android
I think this will help you.