Re: [SailfishDevel] Is pragmatically taking a screenshot possible?

2014-01-06 Thread James Mugford

This is music to my ears.

To my knowledge, this is something that ALL other OS's can't do (bar 
rooted Android phones!)


Very excited with Sailfish OS's capabilities.





On 06/01/14 07:45, Filip Kłębczyk wrote:

Hi James,

you can also look at source code of my screenshot taking app:
https://github.com/fk-lx/SailshotMe

Regards,
Filip
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Is pragmatically taking a screenshot possible?

2014-01-05 Thread Filip Kłębczyk

Hi James,

you can also look at source code of my screenshot taking app:
https://github.com/fk-lx/SailshotMe

Regards,
Filip
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Is pragmatically taking a screenshot possible?

2014-01-05 Thread Thomas Tanghus
On Monday 06 January 2014 00:48 James Mugford wrote:
> Great, this sounds hopeful.
> 
> Do you know if there are there any permission issues surrounding this?

I doubt so. As mentioned in 
https://together.jolla.com/question/9670/api-security-model/
the current security model is QA, Unix permissions and general rep ;)
And you can do it as user nemo so it *should* work.

> For example, do you think this would work as a regular application on
> end consumer devices?

I can't give a qualified answer to that, sorry.

> On 05/01/14 23:21, Thomas Tanghus wrote:
> > On Sunday 05 January 2014 13:42 James Mugford wrote:
> >> Is it technically possible to create an app that can take a screenshot
> >> of the home screen or device viewport?
> >> 
> >> It is for the purpose of creating something technologically similar to a
> >> water screen saver.
> > 
> > I've no big knowledge of the subject, but I guess the easiest approach is
> > to use dbus to grab the screenshot.
> > 
> >  From the "grabscreen" script on the device, the cli command is something 
> > like:
> > dbus-send --type=method_call --dest=org.nemomobile.lipstick \
> > 
> >   /org/nemomobile/lipstick/screenshot
> >   org.nemomobile.lipstick.saveScreenshot string:"$filename"> 
> > Where $filename is the file to save to. Maybe other methods than
> > saveScreenshot is available? I have no idea how to query for available

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Is pragmatically taking a screenshot possible?

2014-01-05 Thread David Greaves
It certainly does; there are 2 screenshot apps in the Harbour - check in 'utils'
section

David
(Author of 'screenshot' ... with an update in QA right now)

On 06/01/14 00:48, James Mugford wrote:
> Great, this sounds hopeful.
> 
> Do you know if there are there any permission issues surrounding this?
> 
> For example, do you think this would work as a regular application on end
> consumer devices?
> 
> Best
> 
> On 05/01/14 23:21, Thomas Tanghus wrote:
>> On Sunday 05 January 2014 13:42 James Mugford wrote:
>>> Is it technically possible to create an app that can take a screenshot
>>> of the home screen or device viewport?
>>>
>>> It is for the purpose of creating something technologically similar to a
>>> water screen saver.
>> I've no big knowledge of the subject, but I guess the easiest approach is to
>> use dbus to grab the screenshot.
>>  From the "grabscreen" script on the device, the cli command is something 
>> like:
>>
>> dbus-send --type=method_call --dest=org.nemomobile.lipstick \
>>   /org/nemomobile/lipstick/screenshot
>> org.nemomobile.lipstick.saveScreenshot string:"$filename"
>>
>> Where $filename is the file to save to. Maybe other methods than 
>> saveScreenshot
>> is available? I have no idea how to query for available methods.
>>
> 
> ___
> SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Is pragmatically taking a screenshot possible?

2014-01-05 Thread James Mugford

Great, this sounds hopeful.

Do you know if there are there any permission issues surrounding this?

For example, do you think this would work as a regular application on 
end consumer devices?


Best

On 05/01/14 23:21, Thomas Tanghus wrote:

On Sunday 05 January 2014 13:42 James Mugford wrote:

Is it technically possible to create an app that can take a screenshot
of the home screen or device viewport?

It is for the purpose of creating something technologically similar to a
water screen saver.

I've no big knowledge of the subject, but I guess the easiest approach is to
use dbus to grab the screenshot.
 From the "grabscreen" script on the device, the cli command is something like:

dbus-send --type=method_call --dest=org.nemomobile.lipstick \
  /org/nemomobile/lipstick/screenshot org.nemomobile.lipstick.saveScreenshot 
string:"$filename"

Where $filename is the file to save to. Maybe other methods than saveScreenshot
is available? I have no idea how to query for available methods.



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Is pragmatically taking a screenshot possible?

2014-01-05 Thread Thomas Tanghus
On Sunday 05 January 2014 13:42 James Mugford wrote:
> Is it technically possible to create an app that can take a screenshot
> of the home screen or device viewport?
> 
> It is for the purpose of creating something technologically similar to a
> water screen saver.

I've no big knowledge of the subject, but I guess the easiest approach is to
use dbus to grab the screenshot.
>From the "grabscreen" script on the device, the cli command is something like:

   dbus-send --type=method_call --dest=org.nemomobile.lipstick \
 /org/nemomobile/lipstick/screenshot org.nemomobile.lipstick.saveScreenshot 
string:"$filename"

Where $filename is the file to save to. Maybe other methods than saveScreenshot
is available? I have no idea how to query for available methods.

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus
___
SailfishOS.org Devel mailing list


[SailfishDevel] Is pragmatically taking a screenshot possible?

2014-01-05 Thread James Mugford

Hi folks,

Is it technically possible to create an app that can take a screenshot 
of the home screen or device viewport?


It is for the purpose of creating something technologically similar to a 
water screen saver.





It is possible in rooted Android phones, via the NDK, with 
/dev/graphics/fb0 .


Tutorial here: 
http://www.pocketmagic.net/2010/11/android-native-screen-capture-application-using-the-framebuffer/#.UkVXCniZilM 



Any help appreciated.
___
SailfishOS.org Devel mailing list