Closed

Android Phonegap File Write Issue

This project received 3 bids from talented freelancers with an average bid price of $3074 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
$1500 - $3000 USD
Total Bids
3
Project Description

Must test on android 4.1.2 and above version.
File write success on android device, so we can find the file on android file manager.
but to show that file on windows file explorer, connect android with PC, open android device on windows explorer, but we can't find that file.

Here is some reference, but it seems this is not solution.
[url removed, login to view]
[url removed, login to view]
If you are expert, you can do this within a few mins, We have 10+ phonegap project, so if your result is good, we will provide many projects to you.
Here is code.
<!DOCTYPE html>
<html>
<head>
<title>FileWriter Example</title>

<script type="text/javascript" charset="utf-8" src="[url removed, login to view]"></script>
<script type="text/javascript" charset="utf-8">

// Wait for Cordova to load
//
[url removed, login to view]("deviceready", onDeviceReady, false);

// Cordova is ready
//
function onDeviceReady() {
[url removed, login to view]([url removed, login to view], 0, gotFS, fail);
}

function gotFS(fileSystem) {
[url removed, login to view]("[url removed, login to view]", {create: true, exclusive: false}, gotFileEntry, fail);
}

function gotFileEntry(fileEntry) {
[url removed, login to view](gotFileWriter, fail);
}

function gotFileWriter(writer) {
[url removed, login to view] = function(evt) {
[url removed, login to view]("contents of file now 'some sample text'");
[url removed, login to view](11);
[url removed, login to view] = function(evt) {
[url removed, login to view]("contents of file now 'some sample'");
[url removed, login to view](4);
[url removed, login to view](" different text");
[url removed, login to view] = function(evt){
[url removed, login to view]("contents of file now 'some different text'");
}
};
};
[url removed, login to view]("some sample text");
}

function fail(error) {
[url removed, login to view]([url removed, login to view]);
}

</script>
</head>
<body>
<h1>Example</h1>
<p>Write File</p>
</body>
</html>

Happy bid.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online