How do I take screenshoot and save it on mobile device

Get help using Construct 2

Post » Wed Jul 02, 2014 4:43 am

Hi guys,
I use this feature on most of my apps and so far, have not gotten any complaints.
Just to be sure, I will do some more testing this weekend.

I'll post again if I encounter issues. :)
B
14
S
4
Posts: 190
Reputation: 1,735

Post » Wed Jul 02, 2014 6:26 am

@Jeetu , same here , we paused it , client was not happy at all , so i had no chance on this.
Hire or Offer a project

Portfolio

Scirra new Shop
B
34
S
5
G
1
Posts: 118
Reputation: 2,663

Post » Wed Jul 02, 2014 6:27 am

Greetings @vancouver , can you please post a capx here for us? Just leave this part as a little test , so we can see the code and test.

Much appreciated

Michael.
Hire or Offer a project

Portfolio

Scirra new Shop
B
34
S
5
G
1
Posts: 118
Reputation: 2,663

Post » Thu Jul 03, 2014 2:47 pm

If I remember right, the same way you load an image, you'll be able to save it, but I'm not sure.

New 'File chooser' plugin. Allows access to local files on the user's system. (Icon is wrong in this build, new icon will come in future release)


The new File Chooser plugin shows a Choose File button that lets the user pick a file from their local disk. On mobile you can also either choose a file from the device documents or a file storage app like Dropbox, or use the device camera to take a picture and use that as a chosen image file. (Exactly what options are available depends on the browser and OS.) It's supported on all modern browsers, but for IE only on IE10+.

Once a file is chosen, you can retrieve its filename, size in bytes, the MIME type (e.g. image/png for a PNG image or text/xml for an XML file), and the file URL. Despite the fact it's a local file, its data can still be accessed by the given URL (which is usually "blob:" followed by a unique ID). For images you can display the chosen file using the Sprite object's Load image from URL action, or (perhaps less obviously) you can AJAX request the file URL like any other URL to get its text data.

This allows you to make use of local text and image files, which could be useful as an alternative for showing photos other than snapshotting a video feed in the User Media object, or allowing a way for text, XML or JSON content to be loaded from disk.
Image
B
107
S
24
G
18
Posts: 1,363
Reputation: 22,774

Post » Thu Jul 03, 2014 6:46 pm

Thank you very much for your respond @TELLES0808

Will try this method also.

Much appreciated.

@Jeetu , have a look at this mate
Hire or Offer a project

Portfolio

Scirra new Shop
B
34
S
5
G
1
Posts: 118
Reputation: 2,663

Post » Wed Jul 09, 2014 8:39 pm

i watch this release note already

but a bit busy now so..
B
8
S
2
Posts: 41
Reputation: 676

Post » Sat Sep 20, 2014 12:31 am

Any luck with saving snapshots to file on android mobile.
the example provided in C2 works on PC but not on my mobile (crosswalk)

do I have to enable any permissions on Intel XDK?
I searched this and it seems that I do not need to add any permission for saving to internal SD. so this should not be an issue.

EDIT1:
I tried enabling the following permissions on intel XDK but it did not work
READ_EXTERNAL_STORAGE
WRITE_EXTERNAL_STORAGE

then I tried enabling all crosswalk plugins, again did not work

so the question remains, why the browser plugin is not able to save snapshots on mobile devices?

EDIT2:

apparently, cordova does not support downloading files/images directly. but there is a plugin for this here:
in Intel XDK, Third party plugin -> get plugin from web
plugin name = "canvas2imageplugin"
plugin ID = "org.devgeeks.canvas2imageplugin"
tick checkbox: Plugin is located in the Apache Cordova Plugins Registry

we just need an expert on this forum to make a construct 2 plugin to enable it. anyone?
B
7
S
1
Posts: 26
Reputation: 530

Post » Sat Sep 20, 2014 10:54 pm

I finally did it
check my other thread: forum/plugin-canvas2imageplaugin_t116018
B
7
S
1
Posts: 26
Reputation: 530

Post » Mon Nov 30, 2015 8:38 am

Ok, Here is my 2 cents on this subject. The reason it will not work on 90% mobile devices is the same reason why you can't do screen share videos on mobile devices. Those who have jail broke there devices can do this trick but risk destroying their device from excessive memory usage and processor over heating due to removing the safeties that came preset with the device. As Mobile devices catch up with laptops for over all functions this may be a different beast all together.
B
29
S
13
G
10
Posts: 355
Reputation: 8,317

Post » Thu Dec 10, 2015 6:51 am

anyway chek this out viewtopic.php?t=163316
B
8
S
2
Posts: 41
Reputation: 676

Previous

Return to How do I....?

Who is online

Users browsing this forum: Bootfit, OBLIVION and 25 guests