(the photo is my PC screen. i run Genymotion, and use LL there)

(the photo is my PC screen. i run Genymotion, and use LL there)

Custom widget seems not to work

]]>

9 Commentsto (the photo is my PC screen. i run Genymotion, and use LL there)

  1. Anonymous says:

    < ![CDATA[

    Taking a shot of your screen should not be taken literal, please use screenshot tools…



    Anyways, that looks like a classical overlooked nullpointer. If that is a script causing it, could you post it?

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Also if you can capture the log of your device, the full stack trace is mirrored in it.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Lukas Morawietz


    Oh, I’m sorry.


    Here is TRUE screenshot…


    https://plus.google.com/photos/

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Pierre Hébert Lukas Morawietz


    And, this is another device (XperiaZ1 Compact , Android 4.4.2) and used the same Template as above.



    This error is from the same script, but I don’t know why these dialogue are different from each other…


    https://plus.google.com/photos/

    ]]>

  5. Anonymous says:

    < ![CDATA[

    /* About the script



    * This script is based on “Image loaded from the Internet directly in memory” by Pierre Hébert.



    * using Google Map API


    * Modified : Masaoka Taro


    */



    LL.bindClass(“android.os.Handler”);


    LL.bindClass(“android.widget.ImageView”);


    LL.bindClass(“java.net.URL”);


    LL.bindClass(“java.lang.Thread”);


    LL.bindClass(“java.lang.Runnable”);


    LL.bindClass(“android.graphics.BitmapFactory”);



    var i = new ImageView(LL.getContext());


    var cont = LL.getContainerById(107);


    var Place =cont.getItemByName(“place”).getLabel();


    var Maps = cont.getItemByName(“maps”);



    // cannot use AsyncTask, so use a Thread and a Handler


    var handler = new Handler();



    new Thread(new Runnable({


    run: function(params) {


    var con = null;


    var is = null;


    try {


    var url = new URL(“https://maps.googleapis.com/maps/api/staticmap?center=Tokyo&style=element:labels|visibility:off&size=360×360“);


    con = url.openConnection();


    is = con.getInputStream();


    var bitmap = BitmapFactory.decodeStream(is);



    handler.post(new Runnable({


    run: function() {


    if(bitmap != null) {


    i.setImageBitmap(bitmap);


    } else {


    // error handling here


    }


    }


    }));


    } catch(e) {


    return null;


    } finally {


    if(is != null) try { is.close(); } catch(e) {}


    if(con != null) con.disconnect();


    }


    }


    })).start();




    return i;

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Thanks for the script, I will try to reproduce the issue.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    I forgot to ask : in which context is this script run ?

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Pierre Hébert Sorry for my late response…



    I run this script as “Create script” in Custom view.



    Oh, new alpha3 seems this bug has been fixed…



    Anyway, Thanks!

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Great, don’t hesitate to let me know if the problem appear again.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *