This is a migrated thread and some comments may be shown as answers.

File linked as download is not working in android apk

0 Answers 167 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kannan
Top achievements
Rank 1
Kannan asked on 16 Mar 2017, 12:22 PM

Hi,
 
Here i'm using Cordova Framework for converting HTML5 to APK.  The HTML5 code have supporting files  like docx,pdf,images,js,css.
 
Sample HTML Code:
<!DOCTYPE html>
<html>
<body>
<h1>This is Test App for Cordova</h1>
<a href="wordfile.docx">file</a>
</body>
</html>

 
When i execute the above code in browser and when i click File " wordfile.docx" linked in the page is getting downloaded in the system
 
Android App:
When i click the same file after conversion into APK using Cordova the link is not responding, please guide me to perform the above action in android.

Hi,

 

Here i'm using Cordova Framework for converting HTML5 to APK.  The HTML5 code have supporting files  like docx,pdf,images,js,css.

 

Sample HTML Code:

<!DOCTYPE html>

<html>

<body>

<h1>This is Test App for Cordova</h1>

<a href="wordfile.docx">file</a>

</body>

</html>

When i execute the above code in browser and when i click File " wordfile.docx" linked in the page is getting downloaded in the system

 

Output in Browser:

 

 

 

 

 

 

Android App:

When i click the same file after conversion into APK using Cordova the link is not responding, please guide me to perform the above action in android.

Hi,

 

Here i'm using Cordova Framework for converting HTML5 to APK.  The HTML5 code have supporting files  like docx,pdf,images,js,css.

 

Sample HTML Code:

<!DOCTYPE html>

<html>

<body>

<h1>This is Test App for Cordova</h1>

<a href="wordfile.docx">file</a>

</body>

</html>

When i execute the above code in browser and when i click File " wordfile.docx" linked in the page is getting downloaded in the system

 

Output in Browser:

 

 

 

 

 

 

Android App:

When i click the same file after conversion into APK using Cordova the link is not responding, please guide me to perform the above action in android.

Hi,

 

Here i'm using Cordova Framework for converting HTML5 to APK.  The HTML5 code have supporting files  like docx,pdf,images,js,css.

 

Sample HTML Code:

<!DOCTYPE html>

<html>

<body>

<h1>This is Test App for Cordova</h1>

<a href="wordfile.docx">file</a>

</body>

</html>

When i execute the above code in browser and when i click File " wordfile.docx" linked in the page is getting downloaded in the system

 

Output in Browser:

 

 

 

 

 

 

Android App:

When i click the same file after conversion into APK using Cordova the link is not responding, please guide me to perform the above action in android.

Hi,

 

Here i'm using Cordova Framework for converting HTML5 to APK.  The HTML5 code have supporting files  like docx,pdf,images,js,css.

 

Sample HTML Code:

<!DOCTYPE html>

<html>

<body>

<h1>This is Test App for Cordova</h1>

<a href="wordfile.docx">file</a>

</body>

</html>

When i execute the above code in browser and when i click File " wordfile.docx" linked in the page is getting downloaded in the system

 

Output in Browser:

 

 

 

 

 

 

Android App:

When i click the same file after conversion into APK using Cordova the link is not responding, please guide me to perform the above action in android.

Hi,

 

Here i'm using Cordova Framework for converting HTML5 to APK.  The HTML5 code have supporting files  like docx,pdf,images,js,css.

 

Sample HTML Code:

<!DOCTYPE html>

<html>

<body>

<h1>This is Test App for Cordova</h1>

<a href="wordfile.docx">file</a>

</body>

</html>

When i execute the above code in browser and when i click File " wordfile.docx" linked in the page is getting downloaded in the system

 

Output in Browser:

 

 

 

 

 

 

Android App:

When i click the same file after conversion into APK using Cordova the link is not responding, please guide me to perform the above action in android.

Hi,

 

Here i'm using Cordova Framework for converting HTML5 to APK.  The HTML5 code have supporting files  like docx,pdf,images,js,css.

 

Sample HTML Code:

<!DOCTYPE html>

<html>

<body>

<h1>This is Test App for Cordova</h1>

<a href="wordfile.docx">file</a>

</body>

</html>

When i execute the above code in browser and when i click File " wordfile.docx" linked in the page is getting downloaded in the system

 

Output in Browser:

 

 

 

 

 

 

Android App:

When i click the same file after conversion into APK using Cordova the link is not responding, please guide me to perform the above action in android.

Hi,

 

Here i'm using Cordova Framework for converting HTML5 to APK.  The HTML5 code have supporting files  like docx,pdf,images,js,css.

 

Sample HTML Code:

<!DOCTYPE html>

<html>

<body>

<h1>This is Test App for Cordova</h1>

<a href="wordfile.docx">file</a>

</body>

</html>

When i execute the above code in browser and when i click File " wordfile.docx" linked in the page is getting downloaded in the system

 

Output in Browser:

 

 

 

 

 

 

Android App:

When i click the same file after conversion into APK using Cordova the link is not responding, please guide me to perform the above action in android.

Hi,

 

Here i'm using Cordova Framework for converting HTML5 to APK.  The HTML5 code have supporting files  like docx,pdf,images,js,css.

 

Sample HTML Code:

<!DOCTYPE html>

<html>

<body>

<h1>This is Test App for Cordova</h1>

<a href="wordfile.docx">file</a>

</body>

</html>

When i execute the above code in browser and when i click File " wordfile.docx" linked in the page is getting downloaded in the system

 

Output in Browser:

 

 

 

 

 

 

Android App:

When i click the same file after conversion into APK using Cordova the link is not responding, please guide me to perform the above action in android.

Tags
Apache Cordova
Asked by
Kannan
Top achievements
Rank 1
Share this question
or