Wasn't there a plugin to read/write to a file in Crosswalk?

Post your completed addons to share with the community

Post » Tue Jun 30, 2015 3:59 pm

I thought at one point there was a plugin that gave the ability to read and write to a text file on android. But I can't seem to find it.

Is there such a plugin or some other way?
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

Post » Tue Jun 30, 2015 5:18 pm

YetAnotherSuperhero wrote:I thought at one point there was a plugin that gave the ability to read and write to a text file on android. But I can't seem to find it.

Is there such a plugin or some other way?

Possibly here's the other way. I can confirm it works with crosswalk, and any other data, not only SaveStateJSON.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Tue Jun 30, 2015 5:56 pm

Thanks, I got the filechooser/loading aspect working but I can't get the saving to work.

I use the browser object to "invoke download of string" but nothing happens. What do I need to do?
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

Post » Tue Jun 30, 2015 6:20 pm

YetAnotherSuperhero wrote:Thanks, I got the filechooser/loading aspect working but I can't get the saving to work.

I use the browser object to "invoke download of string" but nothing happens. What do I need to do?

You are trying to download the SaveStateJSON? You can download this string only in an event like - on save complete(system's condition) - invoke download of string(browser action) - "SaveStateJSON".
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Tue Jun 30, 2015 6:25 pm

No, a custom string.

I'm trying when button clicked -> [Browser].Invoke Download as String

But nothing happens
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

Post » Tue Jun 30, 2015 6:29 pm

YetAnotherSuperhero wrote:No, a custom string.

I'm trying when button clicked -> [Browser].Invoke Download as String

But nothing happens

Hmm, strange, can i see a screenshot of parameters window for Invoke download of string action?
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Tue Jun 30, 2015 6:34 pm

Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

Post » Tue Jun 30, 2015 6:51 pm


And the download is not starting? Try check or update your browser maybe, i just got the same event to work and download the file.

Screenshot 1

Screenshot 2
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Tue Jun 30, 2015 6:52 pm

It does work in the browser, just not in crosswalk. That's the problem I'm having.
Follow me on Twitter @evgLabs
B
34
S
14
G
4
Posts: 251
Reputation: 4,074

Post » Tue Jun 30, 2015 6:55 pm

YetAnotherSuperhero wrote:It does work in the browser, just not in crosswalk. That's the problem I'm having.

Oh, sorry, now i understand, file plugin in XDK must be checked. Oh and File Transfer.

Image
Last edited by Sisyphus on Tue Jun 30, 2015 7:08 pm, edited 1 time in total.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests