devgeeks / Canvas2ImagePlugin

PhoneGap / Cordova plugin for iOS to save the contents of an HTML canvas to the device's Photo Library
211 stars 218 forks source link

Please, can you write a demo using Plugin on android ? #25

Closed kocoro closed 11 years ago

kocoro commented 11 years ago

I am newbie to PhoneGap, so i do not know to use your plugin on Android. It was different with the plugin that I have used. Can you write a demo on android ?

devgeeks commented 11 years ago

Yeah, sure. I'll try and do up a quickie cross platform example this weekend if I can.

devgeeks commented 11 years ago

Also, if you are in a big hurry, I think there is some better example code in an answer I gave to another issue. Issue #19

kocoro commented 11 years ago

I will wait your demo. Thank you so much!

devgeeks commented 11 years ago

I discovered a bug when making the demo app, so I am very glad you asked for it!

I have almost finished the demo, but you might want to try the latest codebase (0.5.0) and see if it works.

I had left off the WRITE_EXTERNAL_STORAGE permission, so if you didn't already have it from some other plugin (such as the File API, etc) then it would fail when trying to save an image.

kocoro commented 11 years ago

I will try new code and report for you.

kocoro commented 11 years ago

I tried and it work. But i have question is how to using plugin of phonegap 2.0 for phonegap 3.0 or 3.1?

devgeeks commented 11 years ago

done... it's not great, but it is an example...

https://github.com/devgeeks/Canvas2ImageDemo