android phonegap file write expert on 4.1.2 and above version.
$30-250 USD
Cancelado
Publicado hace más de 10 años
$30-250 USD
Pagado a la entrega
it works fine on android 2.3.2, but doesn't work on android 4.1.2 and above version, so Must have/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.
[login to view URL]
[login to view URL]
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="[login to view URL]"></script>
<script type="text/javascript" charset="utf-8">
// Wait for Cordova to load
//
[login to view URL]("deviceready", onDeviceReady, false);
// Cordova is ready
//
function onDeviceReady() {
[login to view URL]([login to view URL], 0, gotFS, fail);
}
function gotFS(fileSystem) {
[login to view URL]("[login to view URL]", {create: true, exclusive: false}, gotFileEntry, fail);
}
function gotFileEntry(fileEntry) {
[login to view URL](gotFileWriter, fail);
}
function gotFileWriter(writer) {
[login to view URL] = function(evt) {
[login to view URL]("contents of file now 'some sample text'");
[login to view URL](11);
[login to view URL] = function(evt) {
[login to view URL]("contents of file now 'some sample'");
[login to view URL](4);
[login to view URL](" different text");
[login to view URL] = function(evt){
[login to view URL]("contents of file now 'some different text'");
}
};
};
[login to view URL]("some sample text");
}
function fail(error) {
[login to view URL]([login to view URL]);
}
</script>
</head>
<body>
<h1>Example</h1>
<p>Write File</p>
</body>
</html>
Happy bid.