Pierre Hébert Could you move the getImage method from shortcut to item?

Pierre Hébert Could you move the getImage method from shortcut to item? I would like to be able to get the image of widgets and panels.

Of course setImage does only make sense for shortcuts and should stay where it is.

And: anything going on with tasker integration?

]]>

8 Commentsto Pierre Hébert Could you move the getImage method from shortcut to item?

  1. Anonymous says:

    < ![CDATA[

    Do you mean like a screenshot of the widgets/panels?


    Hmmm, that would be awesome but I guess it’s not as easy as the shortcuts images.



    Perhaps I’m wrong, but what you want is the output view of what android is showing, you can get the image of a shortcut because it is saved internally in the launcher memory, if I’m not wrong.


    What I mean is that it can be done (I saw it in other apps) but it’s not as easy as it seems. Of course I could be wrong (there seem to be ways of taking a screenshot of something from a transparent activity)



    Edit: Hmm, perhaps panels are easy.


    Widgets…

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Just thinking…you can see the preview of widgets in the folders, so why not?



    Pierre Hébert: In case you implement it, what about also a container.getImage()? Like the one of desktops in the configure desktops setting.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Lukas Morawietz as far as tasker im using autoshortcuts which helps but could be better

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Yes this is possible, but also it requires a bit more work. TrianguloY assumptions are correct: shortcut is easy because the icon is already in memory (notice that this is not the full view, no label…). There is no real difficulty to extract an image from other views but some extras steps are needed. I will probably add this method on other item types but not all, hence it may not go in the Item class. Implementing it on a container is the same thing in theory but in practice it will not work reliably because a snapshot of a desktop would easily exceed memory limits, since it can be quite large. Otherwise maybe it could be cropped to the current viewport.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    For desktops, the size of the screen at scale 1 home position is enough (the same as the preview at the right of the settings)


    For panels their ‘item size’ at scale 1 home position too


    For folders…that’s more difficult (except if you can easily take the size with or without the background. If this is the case think about adding it in the preview when editing settings I mentioned, instead of the full screen size)

    ]]>

  6. Anonymous says:

    < ![CDATA[

    I forgot: regarding tasker, there is some work in progress, but in general I make very few progress on anything, so don’t expect something new soon.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Do you have something in mind ? Such as some sort of desktop/panel carousel ?

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Don’t know Lukas, but for me mainly to have a ‘preview’ dynamically updated of a desktop in a different one, so transitions will be better. A carousel of desktops is a good idea, with a ‘zoom’ to enter/exit (I hope resolution won’t be a problem)

    ]]>

Leave a Reply

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