Hello Mar,

I am using the same code and I have no problem. My code is as follows:

var pick = new MozActivity({
            name: "pick",
            data: {
                type: this.type
            }


        });

        var foo = this;

        pick.onsuccess = function() {
            console.log("pick success!! calling " + foo.onsuccess);
            var theresult = this.result;
            enyo.call(foo.owner, foo.onsuccess, [this.result]);
        };


        pick.onerror = function() {
            console.log("error on pick !!! calling " + foo.onerror);
            enyo.call(foo.owner, foo.onerror, [this.result]);
        };


Parts of this code are framework specific. This code works with the gallery
and the camera.

On Tue, Feb 19, 2013 at 6:37 AM, Mar <[email protected]> wrote:

> Hello everyone!
>
> I'm making a lifestyle app for FirefoxOS which can send files to other
> contacts. My app uses a pick:
>
> var pick = new MozActivity({ name: "pick", data: { type: ["image/png",
> "image/jpg", "image/jpeg"] } });
>
> Then If I select a wallpaper I can send it and it works perfectly but I
> have a problems getting the file from the gallery. When I test it in the
> Simulator, the app is closed with no errors in console. When I test it in a
> mobile device, I can select a image, and then a new dialog is open and let
> me crop the image. Then I confirm the select and doesn't do anything.
>
> Is this a known bug? Any idea to solve? Thanks in advance
> ______________________________**_________________
> dev-webapps mailing list
> [email protected]
> https://lists.mozilla.org/**listinfo/dev-webapps<https://lists.mozilla.org/listinfo/dev-webapps>
>



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to