I have saved a file with .docx extension in my app.the file is saved in the sdcard. The file appears as a word file in my sdcard but I am unable to open it (using polaris or any other default software) and message"unsupported file" appears.
When I save the file with .txt extension, I can open it.
    public void Savedoc(View v)
    {
        String filename = "file" + sn + ".docx";
         String filepath = "MyFileStorage";
         myExternalFile = new File(getExternalFilesDir(filepath), filename);
         try {
                FileOutputStream fos = new FileOutputStream(myExternalFile);
                fos.write(ly.getBytes());
                fos.close();
               } catch (IOException e) {
                e.printStackTrace();
               }
    }
thank you alexandru ...but now i get an error message on running the app stating "The Javadoc for this element could neither be found in the attached source nor the attached Javadoc".pls help...
 
     
    